From: José Fonseca Date: Tue, 18 Mar 2008 11:49:02 +0000 (+0000) Subject: gallium: Convenience debug_warning function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1ca951cc4f3392aeec2817e97fb9ade2c1b7881;p=mesa.git gallium: Convenience debug_warning function. --- 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