8#ifndef SEN_CORE_BASE_ASSERT_H
9#define SEN_CORE_BASE_ASSERT_H
36#define SEN_EXPECT(expr) ::sen::impl::senCheckImpl((expr), ::sen::impl::CheckType::expect, #expr, SEN_SL())
39#define SEN_ASSERT(expr) ::sen::impl::senCheckImpl((expr), ::sen::impl::CheckType::assert, #expr, SEN_SL())
42#define SEN_ENSURE(expr) ::sen::impl::senCheckImpl((expr), ::sen::impl::CheckType::ensure, #expr, SEN_SL())
56void trace(std::string preMessage);
void throwRuntimeError(const std::string &err)
Throws std::exception that attempts to collect the stack trace. We also wrap it to avoid including st...
void registerTerminateHandler()
Installs a custom termination handler.
void trace()
Prints the current stack trace to stderr.