Compare commits

...

2 Commits

Author SHA1 Message Date
bunnei
8275ca22c7 Merge 2da1c45867 into 5410b4659d 2018-07-03 03:42:40 +00:00
bunnei
2da1c45867 Ignore asserts - DO NOT CHECK IN 2018-06-27 01:17:30 -04:00

View File

@@ -28,19 +28,12 @@ __declspec(noinline, noreturn)
}
#define ASSERT(_a_) \
do \
if (!(_a_)) { \
assert_noinline_call([] { NGLOG_CRITICAL(Debug, "Assertion Failed!"); }); \
} \
while (0)
if (!(_a_)) { \
}
#define ASSERT_MSG(_a_, ...) \
do \
if (!(_a_)) { \
assert_noinline_call( \
[&] { NGLOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \
} \
while (0)
if (!(_a_)) { \
}
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)