diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-04-27 07:54:05 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-04-27 10:04:02 -0400 |
| commit | 324ee31fc313ab7b02ebb5c9cc980758b4891925 (patch) | |
| tree | 899731d5c75a7b40a8aa72f5e115f86e10078745 /src/common/assert.h | |
| parent | 327fd2c31ea654cf7a4b314f7855d1cf735e1a2b (diff) | |
general: Convert assertion macros over to be fmt-compatible
Diffstat (limited to 'src/common/assert.h')
| -rw-r--r-- | src/common/assert.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index 655446f34a..3ee07f6a20 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -30,14 +30,15 @@ __declspec(noinline, noreturn) #define ASSERT(_a_) \ do \ if (!(_a_)) { \ - assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \ + assert_noinline_call([] { NGLOG_CRITICAL(Debug, "Assertion Failed!"); }); \ } \ while (0) #define ASSERT_MSG(_a_, ...) \ do \ if (!(_a_)) { \ - assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ + assert_noinline_call( \ + [&] { NGLOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ } \ while (0) |
