News for hackers. Stuff that matters.
Re:What is “:-!!” in C code? by comex on Monday November 21, 2016 @12:07AM (#13003304)
Note that C11 has a more friendly static assertion feature:

    _Static_assert(condition, "error message if condition evaluates to false");
(You can also use "static_assert" as an alias for the ugly keyword after including <assert.h>.)
Re:What is “:-!!” in C code? by 0xFFC on Monday November 21, 2016 @12:45AM (#13003438)
I wander what kernel developers thinking about migrating toward C11.
Re:What is “:-!!” in C code? by CapacitorSet on Monday November 21, 2016 @01:29AM (#13003598)
I think there's a better chance for a static_assert proposal in C, especially since Torvalds isn't particularly fond of C++.

Edit: whoops, apparently static_assert is in C11 as well as in C++11. Ignore this comment.

Re:What is “:-!!” in C code? by zodiac on Monday November 21, 2016 @01:45AM (#13003644)
C11 isn't C++