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