--- parser3/src/lib/gc/include/gc.h 2021/01/16 15:47:05 1.6 +++ parser3/src/lib/gc/include/gc.h 2025/08/01 17:10:14 1.7 @@ -213,6 +213,11 @@ GC_API void GC_set_warn_proc GC_PROTO((G /* to suppress all warnings (unless statistics printing is turned on). */ GC_API void GC_ignore_warn_proc(char *, GC_word); +/* abort_func is invoked on GC fatal aborts (just before OS-dependent */ +/* abort or exit(1) is called). Must be non-NULL. */ +typedef void (* GC_abort_func)(const char * /* msg */); +GC_API void GC_set_abort_func(GC_abort_func fn); + #ifdef __cplusplus } /* end of extern "C" */ #endif