dot-xx
A personal collection of small C++ modules
|
Main and only file of the dxx.assert module. More...
import std;
Classes | |
struct | dxx::assert::failure |
A default error type that is thrown when the assertion fails. More... |
Namespaces | |
namespace | dxx::assert |
Main namespace for dxx::assert module. |
Functions | |
template<std::constructible_from< std::string > Failure = failure> | |
void | dxx::assert::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 | dxx::assert::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 and only file of the dxx.assert module.