mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 02:41:49 -05:00
assert: Avoid empty macros
This commit is contained in:
parent
a1cb453470
commit
346149dcf9
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ assert_noinline_call(const Fn& fn) {
|
|||
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
||||
#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
|
||||
#else // not debug
|
||||
#define DEBUG_ASSERT(_a_)
|
||||
#define DEBUG_ASSERT_MSG(_a_, _desc_, ...)
|
||||
#define DEBUG_ASSERT(_a_) do {} while (0)
|
||||
#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) do {} while (0)
|
||||
#endif
|
||||
|
||||
#define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!")
|
||||
|
|
Loading…
Reference in a new issue