add compiletimeassert.h
This commit is contained in:
parent
dfb4915f0a
commit
37013d414b
3
CHANGES
3
CHANGES
@ -1,3 +1,6 @@
|
||||
0.30:
|
||||
add compiletimeassert.h
|
||||
|
||||
0.29:
|
||||
save 8 bytes in taia.h for 64-bit systems
|
||||
add buffer_tosa (buffer writing to auto-growing stralloc)
|
||||
|
4
compiletimeassert.h
Normal file
4
compiletimeassert.h
Normal file
@ -0,0 +1,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]; };
|
Loading…
x
Reference in New Issue
Block a user