Use the new macro COMPILE_TIME_ASSERT() instead of several assert().

committer: mfx <mfx> 978092937 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-29 12:28:57 +00:00
parent f4d2287e57
commit 85920ea8b1
11 changed files with 61 additions and 39 deletions
+5
View File
@@ -298,10 +298,15 @@ typedef RETSIGTYPE (SIGTYPEENTRY *sig_type)(int);
#define index upx_index
#define outp upx_outp
// a dummy statement
#define nop ((void)0)
#define COMPILE_TIME_ASSERT(expr) \
{ typedef int upx_compile_time_assert_fail[(expr) ? 1 : -1]; }
/*************************************************************************
// file io
**************************************************************************/