Hacker News new | ask | show | jobs
by suyjuris 1319 days ago
You can compromise by using abort in debug builds and std::unreachable in release builds.
2 comments

I love it when switching debug mode on changes the control flow graph of my program. Keeps life interesting.
well, that's already the case.
The point of this is that you can control that behavior at the compiler level using different flags instead of changing the code itself (via preprocessor defines).