move-only: Move NDEBUG compile time check to util/check

This commit is contained in:
MarcoFalke
2020-06-08 08:54:23 -04:00
parent eac65d99dd
commit fa457fbd33
3 changed files with 9 additions and 11 deletions

View File

@@ -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