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 ^

int Parrot_on_exit(void (*function)(int , void *), void *arg)

Register the specified function to be called on exit.

void Parrot_exit(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