summaryrefslogtreecommitdiff
path: root/compiletimeassert.h
blob: 977356d4572206c6a4d5b140ac22e04f57604d89 (plain)
1
2
3
4

#define __X(x, y) x ## y
#define __Y(x, y) __X(x, y)
#define compiletimeassert(cond) struct __Y(foo,__LINE__) { char __temp[1 - (!(cond))*2]; };