mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(debug): clean up assert macros
This commit is contained in:
parent
e8d3709d31
commit
0242759cbe
1 changed files with 3 additions and 4 deletions
|
|
@ -6,14 +6,13 @@
|
|||
|
||||
#if defined(NDEBUG)
|
||||
#define BLIZZARD_ASSERT(x) \
|
||||
if (!(x)) { \
|
||||
return 0; \
|
||||
}
|
||||
(void)0
|
||||
#else
|
||||
#define BLIZZARD_ASSERT(x) \
|
||||
if (!(x)) { \
|
||||
Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \
|
||||
}
|
||||
} \
|
||||
(void)0
|
||||
#endif
|
||||
|
||||
namespace Blizzard {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue