VocabularyalienInputs and outputs| args... | zero or more objects passed to the C function |
| funcptr | a C function pointer |
| return | a C return type |
| parameters | a sequence of C parameter types |
| abi | one of cdecl or stdcall |
| return... | the return value of the function, if not void |
Word descriptionInvokes a C function pointer passed on the data stack. Input parameters are taken from the data stack following the function pointer, and the return value is pushed on the data stack after the function returns. A return type of
void indicates that no value is to be expected.
NotesC type names are documented in
C type specifiers.
ErrorsThrows an
alien-indirect-error if the word calling
alien-indirect is not compiled.
See alsoalien-invoke,
alien-assembly,
alien-callbackDefinition