This module provides high level Fortran interfaces to retrieve values from a
Lua script.
The central interface of the module is aot_get_val , which is
a generic interface that allows access to scalars and vectors in global Lua
variables as well as nested tables.
In the Overview there are some more general remarks and further
pointers.
module~~aotus_module~~UsesGraph
module~aotus_module
aotus_module
module~aot_table_module
aot_table_module
module~aotus_module->module~aot_table_module
module~aot_top_module
aot_top_module
module~aotus_module->module~aot_top_module
module~aot_vector_module
aot_vector_module
module~aotus_module->module~aot_vector_module
module~flu_binding
flu_binding
module~aotus_module->module~flu_binding
module~flu_kinds_module
flu_kinds_module
module~aotus_module->module~flu_kinds_module
module~aot_table_module->module~aot_top_module
module~aot_table_module->module~flu_binding
module~aot_table_module->module~flu_kinds_module
module~aot_err_module
aot_err_module
module~aot_table_module->module~aot_err_module
module~aot_extdouble_table_module
aot_extdouble_table_module
module~aot_table_module->module~aot_extdouble_table_module
module~aot_quadruple_table_module
aot_quadruple_table_module
module~aot_table_module->module~aot_quadruple_table_module
module~aot_table_ops_module
aot_table_ops_module
module~aot_table_module->module~aot_table_ops_module
module~aot_top_module->module~flu_binding
module~aot_top_module->module~flu_kinds_module
module~aot_top_module->module~aot_err_module
module~aot_extdouble_top_module
aot_extdouble_top_module
module~aot_top_module->module~aot_extdouble_top_module
module~aot_quadruple_top_module
aot_quadruple_top_module
module~aot_top_module->module~aot_quadruple_top_module
module~aot_vector_module->module~aot_top_module
module~aot_vector_module->module~flu_binding
module~aot_vector_module->module~flu_kinds_module
module~aot_extdouble_vector_module
aot_extdouble_vector_module
module~aot_vector_module->module~aot_extdouble_vector_module
module~aot_quadruple_vector_module
aot_quadruple_vector_module
module~aot_vector_module->module~aot_quadruple_vector_module
module~aot_vector_module->module~aot_table_ops_module
module~flu_binding->module~flu_kinds_module
iso_c_binding
iso_c_binding
module~flu_binding->iso_c_binding
module~dump_lua_fif_module
dump_lua_fif_module
module~flu_binding->module~dump_lua_fif_module
module~lua_fif
lua_fif
module~flu_binding->module~lua_fif
module~lua_parameters
lua_parameters
module~flu_binding->module~lua_parameters
module~aot_err_module->module~flu_binding
module~aot_extdouble_table_module->module~aot_top_module
module~aot_extdouble_table_module->module~flu_binding
module~aot_extdouble_table_module->module~flu_kinds_module
module~aot_extdouble_table_module->module~aot_err_module
module~aot_extdouble_table_module->module~aot_extdouble_top_module
module~aot_extdouble_table_module->module~aot_table_ops_module
module~aot_extdouble_top_module->module~flu_binding
module~aot_extdouble_top_module->module~aot_err_module
module~aot_extdouble_vector_module->module~aot_top_module
module~aot_extdouble_vector_module->module~flu_binding
module~aot_extdouble_vector_module->module~aot_extdouble_top_module
module~aot_extdouble_vector_module->module~aot_table_ops_module
module~aot_quadruple_table_module->module~aot_top_module
module~aot_quadruple_table_module->module~flu_binding
module~aot_quadruple_table_module->module~flu_kinds_module
module~aot_quadruple_table_module->module~aot_err_module
module~aot_quadruple_table_module->module~aot_quadruple_top_module
module~aot_quadruple_table_module->module~aot_table_ops_module
module~aot_quadruple_top_module->module~flu_binding
module~aot_quadruple_top_module->module~aot_err_module
module~aot_quadruple_vector_module->module~aot_top_module
module~aot_quadruple_vector_module->module~flu_binding
module~aot_quadruple_vector_module->module~aot_quadruple_top_module
module~aot_quadruple_vector_module->module~aot_table_ops_module
module~aot_table_ops_module->module~aot_top_module
module~aot_table_ops_module->module~flu_binding
module~aot_table_ops_module->module~flu_kinds_module
module~dump_lua_fif_module->iso_c_binding
module~lua_fif->iso_c_binding
module~lua_fif->module~lua_parameters
module~lua_parameters->iso_c_binding
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
module~~aotus_module~~UsedByGraph
module~aotus_module
aotus_module
module~aot_path_module
aot_path_module
module~aot_path_module->module~aotus_module
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Subroutines
Subroutine to load and execute a script from a file.
Read more…
Arguments
Type
Intent Optional Attributes
Name
type(flu_State )
::
L
Handle to the Lua script
character(len=*),
intent(in)
::
filename
Name of file to load the Lua code from
integer,
intent(out),
optional
::
ErrCode
Error code returned by Lua during loading or executing the file.
Read more…
character(len=*),
intent(out),
optional
::
ErrString
Obtained error description from the Lua stack.
Read more…
type(cbuf_type ),
intent(out),
optional
::
buffer
Optional argument to return the compiled script after loading it to
the caller.
Read more…
Subroutine to load and execute a script given in a string.
Arguments
Type
Intent Optional Attributes
Name
type(flu_State )
::
L
Handle to the Lua script
character(len=*),
intent(in)
::
chunk
String with Lua code to load.
integer,
intent(out),
optional
::
ErrCode
Error code returned by Lua during loading or executing the file.
Read more…
character(len=*),
intent(out),
optional
::
ErrString
Obtained error description from the Lua stack.
Read more…
Subroutine to load and execute a script given in a buffer
(bytecode).
Arguments
Type
Intent Optional Attributes
Name
type(flu_State )
::
L
Handle to the Lua script
character(len=1),
intent(in)
::
buffer (:)
String with Lua code to load.
character(len=*),
intent(in),
optional
::
bufName
Name for the buffer to use in debug messages.
integer,
intent(out),
optional
::
ErrCode
Error code returned by Lua during loading or executing the file.
Read more…
character(len=*),
intent(out),
optional
::
ErrString
Obtained error description from the Lua stack.
Read more…
Close an opened Lua script again.
Arguments
Type
Intent Optional Attributes
Name
type(flu_State )
::
L
Handle to the Lua script to close.
Subroutine to load a script from a file and put it into a character buffer.
Read more…
Arguments
Type
Intent Optional Attributes
Name
character(len=*),
intent(in)
::
filename
Name of file to load the Lua code from
type(cbuf_type ),
intent(out)
::
buffer
Buffer to store the script in the given file in
integer,
intent(out),
optional
::
ErrCode
Error code returned by Lua during loading or executing the file.
Read more…
character(len=*),
intent(out),
optional
::
ErrString
Obtained error description from the Lua stack.
Read more…
Load and execute a given buffer and register it in the package table as
the given module name.
Arguments
Type
Intent Optional Attributes
Name
type(flu_State )
::
L
Lua State to set load the buffer into.
character(len=1),
intent(in)
::
buffer (:)
Buffer to load.
character(len=*),
intent(in)
::
modname
Module name to set.