mirror of
https://github.com/holub/mame
synced 2025-05-28 08:33:05 +03:00
disabled assert replacement for now since it doesn't compile anymore (nw)
emu_fatalerror is unknown to code in the includes / also assert_always() does nothing in non-DEBUG builds
This commit is contained in:
parent
0c7e07d96b
commit
bff99e6130
@ -31,6 +31,11 @@
|
||||
#include <exception>
|
||||
#include <typeinfo>
|
||||
|
||||
// TODO: make the assert replacement and especially assert_always work again
|
||||
#include <assert.h>
|
||||
#define assert_always(x, msg) assert(x)
|
||||
|
||||
/*
|
||||
// standard assertion macros
|
||||
#undef assert
|
||||
#undef assert_always
|
||||
@ -45,6 +50,7 @@
|
||||
#define assert(x) do { } while (0)
|
||||
#define assert_always(x, msg) do { if (!(x)) throw emu_fatalerror("Fatal error: %s (%s:%d)", msg, __FILE__, __LINE__); } while (0)
|
||||
#endif
|
||||
*/
|
||||
|
||||
// core system includes
|
||||
#include "osdcomm.h"
|
||||
|
Loading…
Reference in New Issue
Block a user