News for hackers. Stuff that matters.
Re:D as a C Replacement by nudq on Wednesday July 03, 2019 @04:45AM (#20342690)
That compiles because with gcc extensions or sufficiently recent standards, variable size arrays are now a thing. The compiler doesn't insist on a static array size. What about something like this:

    #define ASSERT_BUILD(x) extern int STATIC_ASSERT_FAILED[(x)?1:-1]

There are no comments on this comment yet.