logoalt Hacker News

YesBoxlast Monday at 2:45 AM1 replyview on HN

Same. I go one step further and create a macro _STOP which is defined as w/e your language's DebugBreak() is. And if it's really important, _CRASH (this coerces me to fix the issue immediately)


Replies

creatolast Monday at 3:01 AM

The "standard" (typically defined in projects I'm familiar with, and as of C23, an actual standard) is "unreachable": https://en.cppreference.com/w/c/program/unreachable.html

show 2 replies