SysAbort

Table of Contents

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)

    
    // Forward declaration to avoid circular includes
    void SysAbort(void);
    
    ///
    LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, m.data);                                                  \
    StrDeinit(&m);                                                                                                 \
    SysAbort();                                                                                                    \
    } while (0)
    }
    
    void SysAbort(void) {
    if (g_abort_callback) {
    g_abort_callback();

Share :

Related Posts

SysGetCurrentProcessId

SysGetCurrentProcessId Description Platform independent method to get current process Id.

Read More

SysGetDirContents

SysGetDirContents Description Read directory contents into a vector. Current contents of the vector will be cleared out.

Read More

SysTerminateProcess

SysTerminateProcess Description Terminate a running process forcefully.

Read More