Y
Hacker News
new
|
ask
|
show
|
jobs
by
asveikau
1 day ago
An assert is not guaranteed to terminate the process. In C, the most common implementation choice is to completely omit the check if you're not building in debug mode.
1 comments
uecker
1 day ago
You need to turn it off by defining NDEBUG. While sometimes it is not for release builds, I am not sure this is common.
link
asveikau
1 day ago
Visual Studio defaults to defining NDEBUG in release mode, and I think that default was pretty influential
link