diff --git a/assertion.h b/assertion.h index 17f4b07..8acd81c 100644 --- a/assertion.h +++ b/assertion.h @@ -15,11 +15,13 @@ namespace Alepha::Hydrogen ::detail:: assertion_m inline void assertion( const bool b ) { + #ifndef NDEBUG if( not b ) { throw build_exception< ProgrammerExpectationViolation >( "Expectation violated." ); } + #endif } } }