Y
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
JonChesterfield
1319 days ago
I love it when switching debug mode on changes the control flow graph of my program. Keeps life interesting.
link
gpderetta
1319 days ago
well, that's already the case.
link
apaprocki
1319 days ago
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).
link