Skip to content

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)
    }
    
    void Abort(void) {
        if (g_abort_callback) {
            g_abort_callback();
    
    // Forward declaration to avoid circular includes
    void Abort(void);
    
    ///
            StrDeinit(&m_);                                                                                                \
            HeapAllocatorDeinit(&log_alloc_);                                                                              \
            Abort();                                                                                                       \
        } while (0)
            StrDeinit(&m_);                                                                                                \
            HeapAllocatorDeinit(&log_alloc_);                                                                              \
            Abort();                                                                                                       \
        } while (0)
Last updated on