1
0
forked from Alepha/Alepha

Assertions only in debug builds.

This commit is contained in:
2024-05-24 13:26:17 -04:00
parent ec41796d59
commit 2442ddac2b

View File

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