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 | 6567d76590c37852937aaceff1cffe04d862620d (patch) | |
| tree | d187e01536fd8f3e0cc2467d0ad317f5bcbc3355 /src/common/assert.h | |
| parent | 81306c43689367c7ff1450dd46c0a61e880a3c7a (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__) |
