aboutsummaryrefslogtreecommitdiff
path: root/src/util/check.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/check.h')
-rw-r--r--src/util/check.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/check.h b/src/util/check.h
index 5c0f32cf51..5cc078b36b 100644
--- a/src/util/check.h
+++ b/src/util/check.h
@@ -42,4 +42,8 @@ class NonFatalCheckError : public std::runtime_error
} \
} while (false)
+#if defined(NDEBUG)
+#error "Cannot compile without assertions!"
+#endif
+
#endif // BITCOIN_UTIL_CHECK_H