 |
WPILibC++ 2026.1.1
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
6#include <source_location>
13#define slp_assert(condition) \
16 auto location = std::source_location::current(); \
17 throw std::invalid_argument(fmt::format( \
18 "{}:{}: {}: Assertion `{}' failed.", location.file_name(), \
19 location.line(), location.function_name(), #condition)); \
27#define slp_assert(condition) assert(condition)