Abort
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 SetAbortCallback, it calls the callback instead.
Success
Function does not return (either aborts or calls callback).
Failure
Function cannot fail.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Sys.c:89:
}
void Abort(void) {
if (g_abort_callback) {
g_abort_callback();- In
Log.h:22:
// Forward declaration to avoid circular includes
void Abort(void);
///
- In
Log.h:49:
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
Abort(); \
} while (0)- In
Log.h:95:
StrDeinit(&m_); \
HeapAllocatorDeinit(&log_alloc_); \
Abort(); \
} while (0)
Last updated on