diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-20 17:58:57 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-20 17:59:00 -0500 |
commit | aaec85df9eb671ebb867ec579fdbed5cf4636ea2 (patch) | |
tree | d187e01536fd8f3e0cc2467d0ad317f5bcbc3355 /src/common/assert.h | |
parent | b6d2c64f4dcb01f1ffc99f9a057910ec65c6a401 (diff) |
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.
Diffstat (limited to 'src/common/assert.h')
-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 0d4eddc194..8ec597914a 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -52,5 +52,5 @@ __declspec(noinline, noreturn) #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) #endif -#define UNIMPLEMENTED() LOG_CRITICAL(Debug, "Unimplemented code!") +#define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") #define UNIMPLEMENTED_MSG(...) ASSERT_MSG(false, __VA_ARGS__) |