Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
asveikau
9d ago
0 comments
Save
Share
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.
0 comments
2 comments · 1 top-level
top
newest
oldest
uecker
9d ago
· 1 in thread
You need to turn it off by defining NDEBUG. While sometimes it is not for release builds, I am not sure this is common.
asveikau
OP
8d ago
Visual Studio defaults to defining NDEBUG in release mode, and I think that default was pretty influential
j
/
k
navigate · click thread line to collapse