-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public GC_set/get_abort_func to replace default GC_on_abort
* include/gc.h (GC_abort_func): New public typedef. * include/gc.h (GC_set_abort_func, GC_get_abort_func): New API function declaration. * include/private/gc_priv.h (GC_on_abort): Change function declaration to function pointer of GC_abort_func type (only if SMALL_CONFIG and not PCR). * misc.c (GC_on_abort): Rename to GC_default_on_abort; make it STATIC and decorate with GC_CALLBACK; define GC_on_abort variable initialized to GC_default_on_abort (only if SMALL_CONFIG and not PCR). * misc.c (GC_set_abort_func, GC_get_abort_func): New public function (only if if SMALL_CONFIG and not PCR) to alter and read GC_on_abort value.
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters