|
dot-xx
A personal collection of small C++ modules
|
Main namespace for dxx::assert module. More...
Classes | |
| struct | failure |
| A default error type that is thrown when the assertion fails. More... | |
Functions | |
| template<std::constructible_from< std::string > Failure = failure> | |
| void | always (bool condition, std::source_location st=std::source_location::current()) |
| Check if the condition is true and throw Failure if it's not. | |
| template<std::constructible_from< std::string > Failure = failure> | |
| void | debug (bool condition, std::source_location st=std::source_location::current()) |
| Same as assert but only performs the check if the library is built in Debug mode. | |
Main namespace for dxx::assert module.
|
inlineexport |
Check if the condition is true and throw Failure if it's not.
|
inlineexport |
Same as assert but only performs the check if the library is built in Debug mode.