Reply to post: Re: Code is truly awful, but sadly not unusual

LibreSSL crypto library leaps from OpenBSD to Linux, OS X, more

Ken Hagan Gold badge

Re: Code is truly awful, but sadly not unusual

/* can't happen */ ??

Isn't that most portably spelled "abort()"?

If the compiler can prove your assertion, it will generate no code. If it cannot, then it will cost you a few bytes of code. Either way, each time you change the surrounding code, the compiler will re-check. On any given platform, there may be non-portable alternatives that turn mistakes into a compile-time error.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon