|
|
|
@ -27,8 +27,7 @@ namespace fuc2 { |
|
|
|
test_sig.function_name()); |
|
|
|
test_sig.function_name()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CHECK(bool test, const std::string &message, const std::source_location location) |
|
|
|
void CHECK(bool test, const std::string &message, const std::source_location location) { |
|
|
|
{ |
|
|
|
|
|
|
|
if(!test) { |
|
|
|
if(!test) { |
|
|
|
auto test_value = fmt::format("{} != true", test); |
|
|
|
auto test_value = fmt::format("{} != true", test); |
|
|
|
throw std::runtime_error( |
|
|
|
throw std::runtime_error( |
|
|
|
|