david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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:
Marty Connor 2006-09-14 17:38:17 +00:00
parent 08d7ea1d34
commit e2aca77132
1 changed files with 3 additions and 1 deletions

View File

@ -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