mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
include: Define TRACE_ON() for VKD3D_NO_TRACE_MESSAGES.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8a23ff1376
commit
9babc0fb44
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#ifdef VKD3D_NO_TRACE_MESSAGES
|
#ifdef VKD3D_NO_TRACE_MESSAGES
|
||||||
#define TRACE(args...) do { } while (0)
|
#define TRACE(args...) do { } while (0)
|
||||||
|
#define TRACE_ON() (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VKD3D_NO_DEBUG_MESSAGES
|
#ifdef VKD3D_NO_DEBUG_MESSAGES
|
||||||
@ -74,7 +75,9 @@ const char *debugstr_w(const WCHAR *wstr, size_t wchar_size) DECLSPEC_HIDDEN;
|
|||||||
|
|
||||||
#define ERR VKD3D_DBG_LOG(ERR)
|
#define ERR VKD3D_DBG_LOG(ERR)
|
||||||
|
|
||||||
|
#ifndef TRACE_ON
|
||||||
#define TRACE_ON() (vkd3d_dbg_get_level() == VKD3D_DBG_LEVEL_TRACE)
|
#define TRACE_ON() (vkd3d_dbg_get_level() == VKD3D_DBG_LEVEL_TRACE)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VKD3D_DEBUG_ENV_NAME(name) const char *vkd3d_dbg_env_name = name
|
#define VKD3D_DEBUG_ENV_NAME(name) const char *vkd3d_dbg_env_name = name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user