| parrotcode: Exit Handling | |
| Contents | C | 

src/exit.c - Exit Handling

Parrot's version of exit(),
on_exit(),
and friends.
Parrot_on_exit() allows you register exit handlers which will be called by Parrot_exit() when the interpreter exits.

PARROT_API void Parrot_on_exit(PARROT_INTERP, NOTNULL(exit_handler_f function), NULLOK(void *arg))PARROT_API PARROT_DOES_NOT_RETURN void Parrot_exit(PARROT_INTERP, int status)
include/parrot/exit.h and t/src/exit.t.

Initial version by Josh Wilmes.
|  |   |