mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
assert_always is basically fatalerror() - so it should always bail out (nw)
This commit is contained in:
parent
6308e9f2e0
commit
b41949161b
@ -221,7 +221,7 @@ inline void operator--(_Type &value, int) { value = (_Type)((int)value - 1); }
|
||||
|
||||
#if defined(MAME_DEBUG_FAST)
|
||||
#define assert(x) do { } while (0)
|
||||
#define assert_always(x, msg) do { } while (0)
|
||||
#define assert_always(x, msg) do { if (!(x)) throw emu_fatalerror("Fatal error: %s\nCaused by assert: %s:%d: %s", msg, __FILE__, __LINE__, #x); } while (0)
|
||||
#elif defined(MAME_DEBUG)
|
||||
#define assert(x) do { if (!(x)) throw emu_fatalerror("assert: %s:%d: %s", __FILE__, __LINE__, #x); } while (0)
|
||||
#define assert_always(x, msg) do { if (!(x)) throw emu_fatalerror("Fatal error: %s\nCaused by assert: %s:%d: %s", msg, __FILE__, __LINE__, #x); } while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user