aot_fun_open Interface

public interface aot_fun_open

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.

Calls

interface~~aot_fun_open~~CallsGraph interface~aot_fun_open aot_fun_open proc~aot_fun_ref aot_fun_ref interface~aot_fun_open->proc~aot_fun_ref proc~aot_fun_table aot_fun_table interface~aot_fun_open->proc~aot_fun_table proc~aot_fun_top aot_fun_top proc~aot_fun_ref->proc~aot_fun_top proc~aot_reference_to_top aot_reference_to_top proc~aot_fun_ref->proc~aot_reference_to_top proc~aot_fun_table->proc~aot_fun_top proc~aot_table_push aot_table_push proc~aot_fun_table->proc~aot_table_push proc~flu_gettop flu_gettop proc~aot_fun_top->proc~flu_gettop proc~flu_isfunction flu_isFunction proc~aot_fun_top->proc~flu_isfunction proc~flu_pushvalue flu_pushvalue proc~aot_fun_top->proc~flu_pushvalue proc~flu_topointer flu_topointer proc~aot_fun_top->proc~flu_topointer proc~flu_rawgeti flu_rawgeti proc~aot_reference_to_top->proc~flu_rawgeti interface~flu_pushinteger flu_pushinteger proc~aot_table_push->interface~flu_pushinteger proc~flu_getfield flu_getfield proc~aot_table_push->proc~flu_getfield proc~flu_getglobal flu_getglobal proc~aot_table_push->proc~flu_getglobal proc~flu_gettable flu_gettable proc~aot_table_push->proc~flu_gettable proc~flu_pop flu_pop proc~aot_table_push->proc~flu_pop proc~flu_pushnil flu_pushnil proc~aot_table_push->proc~flu_pushnil proc~flu_type flu_type proc~aot_table_push->proc~flu_type proc~flu_pushint flu_pushint interface~flu_pushinteger->proc~flu_pushint proc~flu_pushlong flu_pushlong interface~flu_pushinteger->proc~flu_pushlong interface~lua_getfield lua_getfield proc~flu_getfield->interface~lua_getfield interface~lua_getglobal lua_getglobal proc~flu_getglobal->interface~lua_getglobal interface~lua_gettable lua_gettable proc~flu_gettable->interface~lua_gettable interface~lua_gettop lua_gettop proc~flu_gettop->interface~lua_gettop interface~lua_type lua_type proc~flu_isfunction->interface~lua_type interface~lua_settop lua_settop proc~flu_pop->interface~lua_settop interface~lua_pushnil lua_pushnil proc~flu_pushnil->interface~lua_pushnil interface~lua_pushvalue lua_pushvalue proc~flu_pushvalue->interface~lua_pushvalue interface~lua_rawgeti lua_rawgeti proc~flu_rawgeti->interface~lua_rawgeti interface~lua_topointer lua_topointer proc~flu_topointer->interface~lua_topointer proc~flu_type->interface~lua_type interface~lua_pushinteger lua_pushinteger proc~flu_pushint->interface~lua_pushinteger proc~flu_pushlong->interface~lua_pushinteger

Called by

interface~~aot_fun_open~~CalledByGraph interface~aot_fun_open aot_fun_open proc~aot_path_open_fun aot_path_open_fun proc~aot_path_open_fun->interface~aot_fun_open interface~aot_path_open aot_path_open interface~aot_path_open->proc~aot_path_open_fun

Module Procedures

private subroutine aot_fun_table(L, parent, fun, key, pos)

Get a function defined as component of a table.

Read more…

Arguments

Type IntentOptional 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.

private subroutine aot_fun_ref(L, fun, ref)

Get a function from a previously defned Lua reference.

Read more…

Arguments

Type IntentOptional 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.