5#include <ppk_assert/ppk_assert.hpp>
11 ppk::assert::implementation::setAssertHandler(handler);
21ppk::assert::implementation::AssertAction::AssertAction
26 const char* expression,
31 case ppk::assert::implementation::AssertLevel::Debug: {
33 "Assertion failed at {0}:{1} -> '{2}' is false: {3}.", file, line, expression, message);
34 return ppk::assert::implementation::AssertAction::Ignore;
37 case ppk::assert::implementation::AssertLevel::Error: {
39 "Assertion failed at {0}:{1} -> '{2}' is false: {3}.", file, line, expression, message);
40 return ppk::assert::implementation::AssertAction::Throw;
42 case ppk::assert::implementation::AssertLevel::Fatal: {
44 "Assertion failed at {0}:{1} ({2}) -> '{3}' is false: {4}.",
50 return ppk::assert::implementation::AssertAction::Abort;
55 "Unknown assertion level: {0}, at {1}:{2} -> '{3}' is false: {4}. Aborting program.",
61 return ppk::assert::implementation::AssertAction::Throw;
64 "Unknown assertion level: {0}, at {1}:{2} -> '{3}' is false: {4}. Aborting program.",
70 return ppk::assert::implementation::AssertAction::Abort;
Assertion macros and utilities based on the PPK_ASSERT library.
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.
#define IRSOL_LOG_FATAL(...)
Logs a fatal (critical) message using the default logger.
#define IRSOL_LOG_INFO(...)
Logs an info-level message using the default logger.
#define IRSOL_LOG_ERROR(...)
Logs an error-level message using the default logger.
#define IRSOL_LOG_WARN(...)
Logs a warning-level message using the default logger.
Logging utilities and configuration for the irsol library.