diff options
| author | 2018-11-20 17:58:57 -0500 | |
|---|---|---|
| committer | 2018-11-20 17:59:00 -0500 | |
| commit | aaec85df9eb671ebb867ec579fdbed5cf4636ea2 (patch) | |
| tree | d187e01536fd8f3e0cc2467d0ad317f5bcbc3355 | |
| parent | Merge pull request #1667 from DarkLordZach/swkbd (diff) | |
| download | yuzu-aaec85df9eb671ebb867ec579fdbed5cf4636ea2.tar.gz yuzu-aaec85df9eb671ebb867ec579fdbed5cf4636ea2.tar.xz yuzu-aaec85df9eb671ebb867ec579fdbed5cf4636ea2.zip | |
common/assert: Make the UNIMPLEMENTED macro properly assert
Currently, this was only performing a logging call, which doesn't
actually invoke any assertion behavior. This is unlike
UNIMPLEMENTED_MSG, which *does* assert.
This makes the expected behavior uniform across both macros.
| -rw-r--r-- | src/common/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index 0d4eddc19..8ec597914 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -52,5 +52,5 @@ __declspec(noinline, noreturn) | |||
| 52 | #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) | 52 | #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) |
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | #define UNIMPLEMENTED() LOG_CRITICAL(Debug, "Unimplemented code!") | 55 | #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") |
| 56 | #define UNIMPLEMENTED_MSG(...) ASSERT_MSG(false, __VA_ARGS__) | 56 | #define UNIMPLEMENTED_MSG(...) ASSERT_MSG(false, __VA_ARGS__) |