summaryrefslogtreecommitdiff
path: root/lib/nes/common/debug.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/common/debug.hh')
-rw-r--r--lib/nes/common/debug.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/nes/common/debug.hh b/lib/nes/common/debug.hh
index 30370e9..a7a0854 100644
--- a/lib/nes/common/debug.hh
+++ b/lib/nes/common/debug.hh
@@ -21,7 +21,11 @@
#else
+#ifdef NES_HAS_STDLIB
#include <cassert>
+#else
+#include "debug/assert.h"
+#endif
#define NES_ASSERT(...) \
assert(__VA_ARGS__)