Re:What is “:-!!” in C code?
by tedunangst on Sunday November 20, 2016 @11:58PM
(#13003279)
There's nothing particularly weird about this macro, and it has nothing to do with makefiles, automake, gcc flags, etc.
[ Parent
| on HN ]
It is insane, though, and should have been replaced with a compiler feature to do static assertions twenty years ago.
Re:What is “:-!!” in C code?
by colanderman on Monday November 21, 2016 @01:01AM
(#13003488)
It was, five years ago. (C11 provides static_assert.) C was probably one of the first widely-used languages to support such a thing, beside Ada and C++.
C++ added static_assert with C++11.
Though, upon further examination C++11 was published 1 month before C11 (September and October, respectively). I guess your point still stands.
Eiffel did it first.
Re:What is “:-!!” in C code?
by tedunangst on Monday November 21, 2016 @10:29AM
(#13006057)
No, Boost preprocessor is insane.