diff options
author | José Fonseca <[email protected]> | 2008-03-18 11:49:02 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-03-18 17:20:56 +0000 |
commit | d1ca951cc4f3392aeec2817e97fb9ade2c1b7881 (patch) | |
tree | 90eb36590e1f2671e09ce0f3eb485f2419579bb3 /src/gallium/include/pipe | |
parent | e8f8b12bb940794cef8eff52ae8c908ad0604161 (diff) |
gallium: Convenience debug_warning function.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_debug.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h index f971ad3adc0..f3dfa062161 100644 --- a/src/gallium/include/pipe/p_debug.h +++ b/src/gallium/include/pipe/p_debug.h @@ -158,6 +158,16 @@ void debug_mask_vprintf(uint32_t uuid, const char *format, va_list ap); + +#ifdef DEBUG +#define debug_warning(__msg) \ + debug_printf("%s:%i:warning: %s\n", __FILE__, __LINE__, (__msg)) +#else +#define debug_warning(__msg) \ + ((void)0) +#endif + + #ifdef __cplusplus } #endif |