aot_references_module Module

This module provides procedures to deal with Lua references.

See for example Programming in Lua 27.3.2.


Uses

  • module~~aot_references_module~~UsesGraph module~aot_references_module aot_references_module module~lua_parameters lua_parameters module~aot_references_module->module~lua_parameters module~aot_table_ops_module aot_table_ops_module module~aot_references_module->module~aot_table_ops_module module~flu_binding flu_binding module~aot_references_module->module~flu_binding iso_c_binding iso_c_binding module~lua_parameters->iso_c_binding module~aot_table_ops_module->module~flu_binding module~aot_top_module aot_top_module module~aot_table_ops_module->module~aot_top_module module~flu_kinds_module flu_kinds_module module~aot_table_ops_module->module~flu_kinds_module module~flu_binding->module~lua_parameters module~lua_fif lua_fif module~flu_binding->module~lua_fif module~flu_binding->iso_c_binding module~dump_lua_fif_module dump_lua_fif_module module~flu_binding->module~dump_lua_fif_module module~flu_binding->module~flu_kinds_module module~aot_top_module->module~flu_binding module~aot_top_module->module~flu_kinds_module module~aot_extdouble_top_module aot_extdouble_top_module module~aot_top_module->module~aot_extdouble_top_module module~aot_err_module aot_err_module module~aot_top_module->module~aot_err_module module~aot_quadruple_top_module aot_quadruple_top_module module~aot_top_module->module~aot_quadruple_top_module module~lua_fif->module~lua_parameters module~lua_fif->iso_c_binding module~dump_lua_fif_module->iso_c_binding module~aot_extdouble_top_module->module~flu_binding module~aot_extdouble_top_module->module~aot_err_module module~aot_err_module->module~flu_binding module~aot_quadruple_top_module->module~flu_binding module~aot_quadruple_top_module->module~aot_err_module

Used by

  • module~~aot_references_module~~UsedByGraph module~aot_references_module aot_references_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~aot_references_module module~aot_path_module aot_path_module module~aot_path_module->module~aot_fun_module

Contents


Functions

public function aot_reference_for(L, thandle, key, pos) result(ref)

Get a reference for the entry defined by thandle, key and pos, or the current top entry in the stack.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script

integer, intent(in), optional :: thandle

Handle to the table containing the object to get a reference for.

character(len=*), intent(in), optional :: key

Name of the object to look up, if thandle is not present, this is a global definition.

If neither thandle nor key is provided, a reference to the top of the stack is returned.

integer, intent(in), optional :: pos

Positional index of the object inside thandle to get the reference for. If thandle is not provided, this argument is ignored.

If a key is provided, that takes precedent over pos.

Return Value integer


Subroutines

public subroutine aot_reference_to_top(L, ref)

Put a given reference (ref) in the Lua script (L) to the top of the stack.

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script

integer :: ref

Reference retrieved by aot_reference_for to put on the top of the stack