| parrotcode nci PMC | |
| Docs | FAQ | Download | Examples | Talks | Resources | Perl 6 | Languages | Who's Who | Donors | Cage Cleaners | Wiki | |
src/pmc/nci.pmc - Native Call Interface
The vtable functions for the native C call functions.
METHOD get_multisig()Return the MMD signature PMC, if any or a Null PMC.
METHOD set_raw_nci_ptr(void *func)Sets the specified function pointer and raw flag.
void init()Initializes the NCI with a NULL function pointer.
void set_pointer_keyed_str(STRING *key,
void *func)Sets the specified function pointer and signature (*key).
void destroy()Destroys the NCI, freeing any allocated memory.
PMC *clone()Creates and returns a clone of the NCI.
INTVAL defined()Returns whether the NCI is defined.
opcode_t *invoke(void *next)Calls the associated C function,
returning *next.
If the invocant is a class,
the PMC arguments are shifted down.
INTVAL get_integer()Returns the function pointer as an integer.
INTVAL get_bool()Returns the boolean value of the pointer.
METHOD arity()Return the arity of the NCI (the number of arugments).
docs/pdds/pdd03_calling_conventions.pod.
Initial revision by sean 2002/08/04.
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|