Open a Lua function for evaluation.
After it is opened, arguments might be put into the function, and it might be executed. Execution might be repeated for an arbitrary number of iterations, to retrieve more than one evaluation of a single function, before closing it again with aot_fun_close.
Get a function defined as component of a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L |
Handle for the Lua script. |
|||
integer, | intent(in), | optional | :: | parent |
Handle to the table to look in for the function. |
|
type(aot_fun_type), | intent(out) | :: | fun |
Returned handle, providing access to the function. |
||
character(len=*), | intent(in), | optional | :: | key |
Name of the function to look up in the table. |
|
integer, | intent(in), | optional | :: | pos |
Position of the function to look up in the table. |
Get a function from a previously defned Lua reference.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L |
Handle for the Lua script. |
|||
type(aot_fun_type), | intent(out) | :: | fun |
Returned handle, providing access to the function. |
||
integer, | intent(in) | :: | ref |
Lua reference to the function. |