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