Browse Source

liz proposal

pull/3595/head
DraVee 2 weeks ago
committed by crueter
parent
commit
3635b0607c
  1. 7
      src/dynarmic/src/dynarmic/common/assert.h

7
src/dynarmic/src/dynarmic/common/assert.h

@ -9,12 +9,7 @@
// TODO: Use source_info?
[[noreturn]] void assert_terminate_impl(const char* s);
#ifndef ASSERT
# define ASSERT(expr) \
do { \
const bool cond = static_cast<bool>(expr); \
if(!cond) \
[[unlikely]] assert_terminate_impl(__FILE__ ": " #expr); \
} while(0)
# define ASSERT(expr) do { auto const b = !(expr); if(b) [[unlikely]] assert_terminate_impl(__FILE__ ": " #expr); } while(0)
#endif
#ifndef UNREACHABLE
# ifdef _MSC_VER

Loading…
Cancel
Save