diff options
author | 2018-05-01 04:21:20 +1000 | |
---|---|---|
committer | 2018-05-01 04:21:20 +1000 | |
commit | 6487cd2e957f65a9a83162d20ea0479cd2e699f9 (patch) | |
tree | aa909901d936c5da7905eef5d70bb87d3f379dc5 /language | |
parent | 2047471723e83ba31b6a3f14150438556659b4ee (diff) |
Get rid of the assert replacement. It prevents you from using assert in
a destructor for a literal type due to the implicit nothrow. It's just
not worth the trouble it's causing.
In file included from ../../../../../src/emu/emu.h:83:
../../../../../src/emu/mconfig.h:70:5: error: '~token' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions]
assert(m_device == m_host.m_current_device);
^
In file included from ../../../../../src/emu/emu.h:29:
../../../../../src/emu/emucore.h:230:48: note: expanded from macro 'assert'
#define assert(x) do { if (!(x)) throw emu_fatalerror("assert: %s:%d: %s", __FILE__, __LINE__, #x); } while (0)
^
In file included from ../../../../../src/emu/emu.h:83:
../../../../../src/emu/mconfig.h:66:3: note: destructor has a implicit non-throwing exception specification
~token()
^
1 error generated.
Diffstat (limited to 'language')
0 files changed, 0 insertions, 0 deletions