Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


You need to turn it off by defining NDEBUG. While sometimes it is not for release builds, I am not sure this is common.


Visual Studio defaults to defining NDEBUG in release mode, and I think that default was pretty influential




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: