diff options
| author | 2018-04-27 07:54:05 -0400 | |
|---|---|---|
| committer | 2018-04-27 10:04:02 -0400 | |
| commit | 847549663090aeef89debc6213ef17b7f14e0b0e (patch) | |
| tree | 899731d5c75a7b40a8aa72f5e115f86e10078745 /src/common/assert.h | |
| parent | Merge pull request #380 from ogniK5377/service-impl (diff) | |
| download | yuzu-847549663090aeef89debc6213ef17b7f14e0b0e.tar.gz yuzu-847549663090aeef89debc6213ef17b7f14e0b0e.tar.xz yuzu-847549663090aeef89debc6213ef17b7f14e0b0e.zip | |
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 655446f34..3ee07f6a2 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -30,14 +30,15 @@ __declspec(noinline, noreturn) | |||
| 30 | #define ASSERT(_a_) \ | 30 | #define ASSERT(_a_) \ |
| 31 | do \ | 31 | do \ |
| 32 | if (!(_a_)) { \ | 32 | if (!(_a_)) { \ |
| 33 | assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \ | 33 | assert_noinline_call([] { NGLOG_CRITICAL(Debug, "Assertion Failed!"); }); \ |
| 34 | } \ | 34 | } \ |
| 35 | while (0) | 35 | while (0) |
| 36 | 36 | ||
| 37 | #define ASSERT_MSG(_a_, ...) \ | 37 | #define ASSERT_MSG(_a_, ...) \ |
| 38 | do \ | 38 | do \ |
| 39 | if (!(_a_)) { \ | 39 | if (!(_a_)) { \ |
| 40 | assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ | 40 | assert_noinline_call( \ |
| 41 | [&] { NGLOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ | ||
| 41 | } \ | 42 | } \ |
| 42 | while (0) | 43 | while (0) |
| 43 | 44 | ||