SysAbort
- Function
- October 8, 2025
Table of Contents
SysAbort
SysAbort
Description
Custom abort function that can be redirected for testing purposes. By default, this calls the standard abort() function. If a callback is set via SysSetAbortCallback, it calls the callback instead.
Success
Function does not return (either aborts or calls callback).
Failure
Function cannot fail.
Usage example (Cross-references)
- In
Sys.c:86
:
}
void SysAbort(void) {
if (g_abort_callback) {
g_abort_callback();
- In
Log.h:20
:
// Forward declaration to avoid circular includes
void SysAbort(void);
///
- In
Log.h:38
:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
SysAbort(); \
} while (0)
- In
Log.h:101
:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, m_.data); \
StrDeinit(&m_); \
SysAbort(); \
} while (0)