diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-08 08:54:23 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-14 13:58:02 -0400 |
commit | fa457fbd3387661e1973a8f4e5cc2def79e0c625 (patch) | |
tree | b067c61799628baa207c4a6fadfe6dec283b6320 /src/util/check.h | |
parent | eac65d99ddb27061e6ae0f9448887db86e2c0734 (diff) |
move-only: Move NDEBUG compile time check to util/check
Diffstat (limited to 'src/util/check.h')
-rw-r--r-- | src/util/check.h | 4 |
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 |