NAME ^

src/inter_cb.c - Parrot Interpreter - Callback Function Handling

DESCRIPTION ^

NCI callback functions may run, whenever the C code executes the calback. To be prepared for async callbacks these are converted to callback events.

Functions ^

PMC *Parrot_make_cb(Parrot_Interp interpreter, PMC *sub, PMC *user STRING *cb_signature)

Create a callback function according to pdd16.

static void verify_CD(void *external_data, PMC *callback_info)

Verify callback_info PMC then continue with callback_CD

static void callback_CD(Parrot_Interp, void *external_data, PMC *callback_info)

Common callback function handler s. pdd16

void

Parrot_run_callback(Parrot_Interp interpreter, PMC* user_data, void* ext)>

Run a callback function. The PMC* user_data holds all necessary items in its properties.

void Parrot_callback_C(void *external_data, PMC *callback_info)

void Parrot_callback_D(PMC *callback_info, void *external_data)

NCI callback functions s. ppd16

SEE ALSO ^

include/parrot/interpreter.h, "pdds/pdd16_native_call.pod" in docs.

POD ERRORS ^

Hey! The above document had some coding errors, which are explained below:

Around line 222:

Unterminated C<...> sequence


parrot