diff options
Diffstat (limited to 'src/z-util.c')
-rw-r--r-- | src/z-util.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/z-util.c b/src/z-util.c index 4c59f793..0304a1da 100644 --- a/src/z-util.c +++ b/src/z-util.c @@ -106,35 +106,3 @@ void quit(cptr str) /* Failure */ (void)(exit( -1)); } - - - -/* - * Redefinable "core" action - */ -void (*core_aux)(cptr) = NULL; - -/* - * Dump a core file, after printing a warning message - * As with "quit()", try to use the "core_aux()" hook first. - */ -void core(cptr str) -{ - char *crash = NULL; - - /* Use the aux function */ - if (core_aux) (*core_aux)(str); - - /* Dump the warning string */ - if (str) plog(str); - - /* Attempt to Crash */ - (*crash) = (*crash); - - /* Be sure we exited */ - quit("core() failed"); -} - - - - |