This module provides some convenient functions to act on Lua tables.
Get a value from a table.
Retrieve a single precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=single_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a double precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=double_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a default integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=int_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a long integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=long_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a string from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val | Value of the table entry if it exists. |
|||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
character(len=*), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a logical value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
logical, | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a userdata value (generic C pointer) from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
type(c_ptr), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Set a value in a table.
Put a single precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a double precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a default integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a long integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a string value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a logical value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put user-data pointer into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in) | :: | val | Pointer to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Get a value from the Lua script.
Retrieve a single precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=single_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a double precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=double_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a default integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=int_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a long integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=long_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a string from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val | Value of the table entry if it exists. |
|||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
character(len=*), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a logical value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
logical, | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a userdata value (generic C pointer) from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
type(c_ptr), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
This interface enables the simple creation of uniform one dimensional arrays as tables in the Lua context.
This subroutine takes a one dimensional array, and puts it as a table into the Lua context.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(out) | :: | thandle | Handle to access the newly created table. |
||
real(kind=single_k), | intent(in) | :: | val(:) | Values to put into the new table. |
This subroutine takes a one dimensional array, and puts it as a table into the Lua context.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | ||||
integer, | intent(out) | :: | thandle | Handle to access the newly created table. |
||
real(kind=double_k), | intent(in) | :: | val(:) | Values to put into the new table. |
Returns wether a given entity exists in the Lua script L.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put the top of the stack into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Retrieve a single precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=single_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a double precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
real(kind=double_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a default integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=int_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a long integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
integer(kind=long_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a logical value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
logical, | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a userdata value (generic C pointer) from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val | Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
type(c_ptr), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a string from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val | Value of the table entry if it exists. |
|||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle | Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
|
character(len=*), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Put a single precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a double precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a default integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a long integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a logical value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a string value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put user-data pointer into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in) | :: | val | Pointer to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
This subroutine takes a one dimensional array, and puts it as a table into the Lua context.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(out) | :: | thandle | Handle to access the newly created table. |
||
real(kind=single_k), | intent(in) | :: | val(:) | Values to put into the new table. |
This subroutine takes a one dimensional array, and puts it as a table into the Lua context.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | ||||
integer, | intent(out) | :: | thandle | Handle to access the newly created table. |
||
real(kind=double_k), | intent(in) | :: | val(:) | Values to put into the new table. |