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)
|
#if defined(NDEBUG)
|
||||||
#define BLIZZARD_ASSERT(x) \
|
#define BLIZZARD_ASSERT(x) \
|
||||||
if (!(x)) { \
|
(void)0
|
||||||
return 0; \
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
#define BLIZZARD_ASSERT(x) \
|
#define BLIZZARD_ASSERT(x) \
|
||||||
if (!(x)) { \
|
if (!(x)) { \
|
||||||
Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \
|
Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \
|
||||||
}
|
} \
|
||||||
|
(void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Blizzard {
|
namespace Blizzard {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue