diff options
author | Marty Connor <mdc@etherboot.org> | 2006-09-14 17:38:17 +0000 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2006-09-14 17:38:17 +0000 |
commit | e2aca77132d42aefa2d7a2346a4a3fd910c8e2a9 (patch) | |
tree | 8e8eb3b6a511ddecdb0d1ac68065f15bd612ed92 /src/include/compiler.h | |
parent | 08d7ea1d343cace4fb19316571e2c25c1cfdfbba (diff) | |
download | ipxe-e2aca77132d42aefa2d7a2346a4a3fd910c8e2a9.zip ipxe-e2aca77132d42aefa2d7a2346a4a3fd910c8e2a9.tar.gz ipxe-e2aca77132d42aefa2d7a2346a4a3fd910c8e2a9.tar.bz2 |
update DBG_DISCARD macro to allow the compiler to see the argument for compile-time checking, while still having it optimized away during compilation
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r-- | src/include/compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h index f2e63f1..3aee4a6 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -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 |