vkd3d: Disable WARN_ON() when VKD3D_NO_DEBUG_MESSAGES is defined.

Similarly to WARN().
This commit is contained in:
Giovanni Mascellani 2024-07-26 11:02:20 +02:00 committed by Henri Verbeet
parent 947b937a1a
commit 4c1cc6101f
Notes: Henri Verbeet 2024-07-29 13:23:46 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Conor McCarthy (@cmccarthy)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/867

View File

@ -122,6 +122,7 @@ VKD3D_NORETURN static inline void vkd3d_unreachable_(const char *filename, unsig
#ifdef VKD3D_NO_DEBUG_MESSAGES #ifdef VKD3D_NO_DEBUG_MESSAGES
#define WARN(args...) do { } while (0) #define WARN(args...) do { } while (0)
#define FIXME(args...) do { } while (0) #define FIXME(args...) do { } while (0)
#define WARN_ON() (false)
#endif #endif
enum vkd3d_dbg_level enum vkd3d_dbg_level