NAME ^

src/exit.c - Exit Handling

DESCRIPTION ^

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.

Functions ^

PARROT_API void Parrot_on_exit(PARROT_INTERP, NOTNULL(exit_handler_f function), NULLOK(void *arg))

Register the specified function to be called on exit.

PARROT_API PARROT_DOES_NOT_RETURN void Parrot_exit(PARROT_INTERP, int status)

Exit, calling any registered exit handlers.

SEE ALSO ^

include/parrot/exit.h and t/src/exit.t.

HISTORY ^

Initial version by Josh Wilmes.


parrot