mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 18:00:48 +02:00
gallium: Convenience debug_warning function.
This commit is contained in:
parent
e8f8b12bb9
commit
d1ca951cc4
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue