Get a function defined as component of a table.
Functions in tables might be retrieved by position or key. If both optional parameters are provided, the key is attempted to be read first. Only when that fails, the position will be tested.
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. |