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

void Parrot_on_exit
Register the specified function to be called on exit.
void Parrot_exit
Exit, calling any registered exit handlers.

SEE ALSO

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

HISTORY

Initial version by Josh Wilmes.