119#ifdef IRSOL_DISABLE_ASSERT
120#ifdef PPK_ASSERT_ENABLED
121#if PPK_ASSERT_ENABLED
122#error "PPK_ASSERT_ENABLED is set to 1, but IRSOL_DISABLE_ASSERT is defined."
125#define PPK_ASSERT_ENABLED 0
128#define PPK_ASSERT_ENABLED 1
131#include <ppk_assert/ppk_assert.hpp>
133#define IRSOL_ASSERT_DEBUG PPK_ASSERT_DEBUG
134#define IRSOL_ASSERT_ERROR PPK_ASSERT_ERROR
135#define IRSOL_ASSERT_FATAL PPK_ASSERT_FATAL
136#define IRSOL_ASSERT_FALSE(message) IRSOL_ASSERT_FATAL(false, message)
138#define IRSOL_STATIC_ASSERT PPK_STATIC_ASSERT
170typedef ppk::assert::implementation::AssertAction::AssertAction (*
AssertHandler)(
173 const char* function,
174 const char* expression,
176 const char* message);
224ppk::assert::implementation::AssertAction::AssertAction
assertHandler(
227 const char* function,
228 const char* expression,
230 const char* message);
void setAssertHandler(AssertHandler handler)
Sets a custom assertion handler function.
ppk::assert::implementation::AssertAction::AssertAction assertHandler(const char *file, int line, const char *function, const char *expression, int level, const char *message)
Internal default assertion handler implementation.
void initAssertHandler()
Initializes the assertion handler system.
ppk::assert::implementation::AssertAction::AssertAction(* AssertHandler)(const char *file, int line, const char *function, const char *expression, int level, const char *message)
ppk::assert::AssertionException AssertionException