Use the new macro COMPILE_TIME_ASSERT() instead of several assert().
committer: mfx <mfx> 978092937 +0000
This commit is contained in:
@@ -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
|
||||
**************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user