Thursday, February 16, 2012

Nice C-static-assert

Buddy gave this example of C-static assert.
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))

No comments:

Post a Comment