 |
Sleipnir C++ API
|
Loading...
Searching...
No Matches
8#include <source_location>
14#define slp_assert(condition) \
17 auto location = std::source_location::current(); \
18 throw std::invalid_argument(std::format( \
19 "{}:{}: {}: Assertion `{}' failed.", location.file_name(), \
20 location.line(), location.function_name(), #condition)); \
31#define slp_assert(condition) assert(condition)