aot_fun_ref Subroutine

private subroutine aot_fun_ref(L, fun, ref)

Get a function from a previously defned Lua reference.

Use a previously (with aot_reference_for) defined reference to get a function.

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.


Calls

proc~~aot_fun_ref~~CallsGraph proc~aot_fun_ref aot_fun_ref 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~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~lua_gettop lua_gettop proc~flu_gettop->interface~lua_gettop interface~lua_type lua_type proc~flu_isfunction->interface~lua_type 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

Called by

proc~~aot_fun_ref~~CalledByGraph proc~aot_fun_ref aot_fun_ref interface~aot_fun_open aot_fun_open interface~aot_fun_open->proc~aot_fun_ref 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

Source Code

  subroutine aot_fun_ref(L, fun, ref)
    type(flu_state) :: L !! Handle for the Lua script.

    !> Returned handle, providing access to the function.
    type(aot_fun_type), intent(out) :: fun

    !> Lua reference to the function.
    integer, intent(in) :: ref

    call aot_reference_to_top(L, ref)
    fun = aot_fun_top(L)
  end subroutine aot_fun_ref