diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-10-28 03:07:00 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-10-28 08:48:29 +0100 |
| commit | 5032581ffc1e29d6b139d66eaa7228c0113bed14 (patch) | |
| tree | 0fa40a95cba1ceacddef4b032b40e4b605329166 /compat/assert.hpp | |
| parent | 221861499394aa8fa5c2682cafb3387ab9a3683f (diff) | |
wip to rebasewip22
Diffstat (limited to 'compat/assert.hpp')
| -rw-r--r-- | compat/assert.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index 8c882b0e..3daf33ce 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -39,10 +39,20 @@ void fm_emit_debug_loc0(const char* file, int line, fm_FORMAT_ARG_MSVC const cha #define fm_debug_loc(pfx, ...) (::floormat::fm_emit_debug_loc(pfx, __FILE__, __LINE__,__VA_ARGS__)) #define fm_debug_loc0(...) (::floormat::fm_emit_debug_loc0(__FILE__, __LINE__,__VA_ARGS__)) +#if defined FM_NO_DEBUG && !defined FM_NO_DEBUG2 +#define FM_NO_DEBUG2 +#endif + #ifndef FM_NO_DEBUG #define fm_debug_assert(...) fm_assert(__VA_ARGS__) #else -#define fm_debug_assert(...) void() +#define fm_debug_assert(...) (void()) +#endif + +#ifndef FM_NO_DEBUG2 +#define fm_debug2_assert(...) fm_assert(__VA_ARGS__) +#else +#define fm_debug2_assert(...) (void()) #endif #define fm_warn_once(...) do { \ |
