summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emucore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/emucore.h')
-rw-r--r--src/emu/emucore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h
index ef6713c8d8f..530227ad692 100644
--- a/src/emu/emucore.h
+++ b/src/emu/emucore.h
@@ -237,6 +237,14 @@ template <typename T> constexpr auto DEGREE_TO_RADIAN(T const &x) { return (M_PI
#define ENDIAN_VALUE_NE_NNE(endian,neval,nneval) (((endian) == ENDIANNESS_NATIVE) ? (neval) : (nneval))
+// useful for declaring functions with asserts as conditionally noexcept
+#ifdef NDEBUG
+constexpr bool MAME_NDEBUG = true;
+#else
+constexpr bool MAME_NDEBUG = false;
+#endif
+
+
//**************************************************************************
// EXCEPTION CLASSES
//**************************************************************************