diff options
author | 2018-03-24 03:53:40 +1100 | |
---|---|---|
committer | 2018-03-24 03:53:40 +1100 | |
commit | 1e1e8eb034358f200a61561feeafe422cd9321a1 (patch) | |
tree | 1e2f9d57a3d32277e9a01f96dc696c162a87648b /src/devices/cpu/uml.cpp | |
parent | a8633e35a461a85429fe696c72e085b354cec716 (diff) |
modernise drcuml somewhat (nw)
Diffstat (limited to 'src/devices/cpu/uml.cpp')
-rw-r--r-- | src/devices/cpu/uml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/uml.cpp b/src/devices/cpu/uml.cpp index 6555eff161d..a26f3a92038 100644 --- a/src/devices/cpu/uml.cpp +++ b/src/devices/cpu/uml.cpp @@ -257,10 +257,10 @@ inline u64 rol64(u64 source, u8 count) uml::code_handle::code_handle(drcuml_state &drcuml, const char *name) : m_code(reinterpret_cast<drccodeptr *>(drcuml.cache().alloc_near(sizeof(drccodeptr)))) , m_string(name) - , m_next(nullptr) , m_drcuml(drcuml) { - if (m_code == nullptr) + (void)m_drcuml; // without this, non-debug builds fail because the asserts are preprocessed out + if (!m_code) throw std::bad_alloc(); *m_code = nullptr; } |