Merge pull request #3474 from wwylele/fuck-you-unimplemented

assert: do not crash on unimplemented code in debug build
This commit is contained in:
bunnei 2018-03-06 11:46:30 -05:00 committed by GitHub
commit 1a2f29aad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,5 +52,5 @@ __declspec(noinline, noreturn)
#define DEBUG_ASSERT_MSG(_a_, _desc_, ...)
#endif
#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
#define UNIMPLEMENTED() LOG_CRITICAL(Debug, "Unimplemented code!")
#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__)