aboutsummaryrefslogtreecommitdiff
path: root/src/util/check.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-06-08 08:54:23 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-06-14 13:58:02 -0400
commitfa457fbd3387661e1973a8f4e5cc2def79e0c625 (patch)
treeb067c61799628baa207c4a6fadfe6dec283b6320 /src/util/check.h
parenteac65d99ddb27061e6ae0f9448887db86e2c0734 (diff)
downloadbitcoin-fa457fbd3387661e1973a8f4e5cc2def79e0c625.tar.xz
move-only: Move NDEBUG compile time check to util/check
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