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

You're right, the thing I linked to do does exactly that. I should have read it more closely.

The projects that I've worked on, unconditionally define it as a thing that crashes (e.g. `std::abort` with a message). They don't actually use that C/C++ thing (because C23 is too new), and apparently it would be wrong to do so.





You can use the standard feature with the unreachable sanitizer: https://godbolt.org/z/3hePd18Tn



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

Search: