mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03: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:
@@ -124,7 +124,9 @@ __asm__ ( ".equ\tDEBUG_LEVEL, " DEBUG_SYMBOL_STR );
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DBG_PRINT(...) printf ( __VA_ARGS__ )
|
#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 DBG DBG_DISCARD
|
||||||
#define DBG2 DBG_DISCARD
|
#define DBG2 DBG_DISCARD
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user