12 #ifndef DOCWIRE_DEBUG_ASSERT_H
13 #define DOCWIRE_DEBUG_ASSERT_H
15 #include "make_error.h"
16 #include "with_source_location.h"
27 [[noreturn]] DOCWIRE_CORE_EXPORT
void panic(std::exception_ptr eptr);
46 template<
typename... Context>
51 errors::panic(make_error_ptr_from_tuple(condition.location, std::make_tuple(std::forward<Context>(context)...)));
57 template<
typename... Context>
58 constexpr
void debug_assert(detail::with_source_location<bool> , Context&&...) {}
Provides features for reporting and handling errors with context data using nested exceptions.
DOCWIRE_CORE_EXPORT void panic(std::exception_ptr eptr)
Terminates the program with a panic message in debug builds.
The main namespace for the DocWire SDK.
void debug_assert(detail::with_source_location< bool > condition, Context &&... context)
Asserts a condition in debug builds.
Helper struct to capture the source location of a call site. This is implicitly constructed from a va...