Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
suyjuris
· 4y ago · 0 comments
You can compromise by using abort in debug builds and std::unreachable in release builds.
Comments
[–]
JonChesterfield
4y ago
I love it when switching debug mode on changes the control flow graph of my program. Keeps life interesting.
[–]
gpderetta
4y ago
well, that's already the case.
[–]
apaprocki
4y 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).