12 #define WIN32_LEAN_AND_MEAN
22 #include "VEX/VEX_export.h"
57 [[noreturn]]
void VEX_EXPORT
throw_error(
const std::string& msg);
69 void VEX_EXPORT
log(
const char* fmt, ...);
77 void VEX_EXPORT
log(
LogLevel level,
const char* fmt, ...);
void(* LogCallbackFn)(LogLevel level, const char *message)
Defines the callback signature.
void VEX_EXPORT AddLogCallback(LogCallbackFn callback)
Adds a callback function to be called when a log message is generated.
void VEX_EXPORT InitCrashHandler()
Initializes the low-level crash handler.
void VEX_EXPORT throw_error(const std::string &msg)
Throws an error or terminates the application.
void VEX_EXPORT log(const char *fmt,...)
Logs a formatted message.
void VEX_EXPORT handle_critical_exception(const std::exception &e)
Handles a critical exception, forcing termination.
void VEX_EXPORT handle_exception(const std::exception &e)
Handles an exception based on build configuration.
LogLevel
Enum class for log levels.