Module for interaction with topmost element of the Lua stack.
This is a basic module which provides the fundamental functionality to access the topmost element in the stack of the Lua API. All intrinsic variables except complex numbers can be accessed this way.
Get the value on top of the Lua API stack
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
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. |
Interpret topmost entry on Lua stack as a double precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
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. |
Interpret topmost entry on Lua stack as a default integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val | Value of the Variable in the script |
||
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(kind=int_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val | Value of the Variable in the script |
||
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(kind=long_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val | Value of the Variable in the script |
|||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
character(len=*), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
logical, | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as userdata.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
type(c_ptr), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
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. |
Interpret topmost entry on Lua stack as a double precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
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. |
Interpret topmost entry on Lua stack as a default integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val | Value of the Variable in the script |
||
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(kind=int_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val | Value of the Variable in the script |
||
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(kind=long_k), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
logical, | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as a single precision real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val | Value of the Variable in the script |
|||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
character(len=*), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |
Interpret topmost entry on Lua stack as userdata.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val | Value of the Variable in the script |
||
integer, | intent(out) | :: | ErrCode | Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L | Handle to the Lua script |
|||
type(c_ptr), | intent(in), | optional | :: | default | Some default value, that should be used, if the variable is not set in the Lua script. |