mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
update DBG_DISCARD macro to allow the compiler to see the argument for compile-time checking, while still having it optimized away during compilation
This commit is contained in:
parent
08d7ea1d34
commit
e2aca77132
@ -124,7 +124,9 @@ __asm__ ( ".equ\tDEBUG_LEVEL, " DEBUG_SYMBOL_STR );
|
||||
#endif
|
||||
|
||||
#define DBG_PRINT(...) printf ( __VA_ARGS__ )
|
||||
#define DBG_DISCARD(...) do {} while ( 0 )
|
||||
#define DBG_DISCARD(...) do { if ( 0 ) printf ( __VA_ARGS__ ); } while ( 0 )
|
||||
/*#define DBG_DISCARD(...) do {} while ( 0 )*/
|
||||
|
||||
#define DBG DBG_DISCARD
|
||||
#define DBG2 DBG_DISCARD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user