Skip to content
Snippets Groups Projects
Commit 1172e66f authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

include: Use "do { } while (0)" when VKD3D_NO_{TRACE, DEBUG}_MESSAGES is defined.


In order to handle the following construct correctly:

  if (...) TRACE(...);

Signed-off-by: default avatarJózef Kucia <jkucia@codeweavers.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent d5d1ee40
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,12 @@
#include <stdarg.h>
#ifdef VKD3D_NO_TRACE_MESSAGES
#define TRACE(args...)
#define TRACE(args...) do { } while (0)
#endif
#ifdef VKD3D_NO_DEBUG_MESSAGES
#define WARN(args...)
#define FIXME(args...)
#define WARN(args...) do { } while (0)
#define FIXME(args...) do { } while (0)
#endif
enum vkd3d_dbg_level
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment