TRLC Platform Library
1.0.0
Header-only C++ library for compile-time platform detection and abstraction
|
Debug utilities class with static methods. More...
#include <trlc/platform/debug.hpp>
Static Public Member Functions | |
static void | setAssertionHandler (AssertionHandler handler) |
static AssertionHandler | getAssertionHandler () |
Get the current assertion handler. More... | |
static void | debugBreak () |
static void | unreachable () |
static void | abort (const char *message=nullptr) |
static bool | canCaptureStackTrace () |
Check if stack trace capture is supported. More... | |
static void | printStackTrace () |
Debug utilities class with static methods.
This class provides a collection of debug-related utilities including assertion handling, debug breaks, program termination, and stack trace support. All methods are static and thread-safe.
The class manages a global assertion handler that can be customized by the application. Thread safety is ensured through atomic operations.
|
inlinestatic |
|
inlinestatic |
Check if stack trace capture is supported.
Determines whether the current platform and build configuration supports capturing and displaying stack traces.
|
inlinestatic |
|
inlinestatic |
Get the current assertion handler.
Returns the currently registered assertion handler function.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |