Pushes global variable on stack and optionally returns value.
Returns the values of global variable as 4-byte integers.
The function returns the following error codes:
E_ALLOC
if array allocation failed.E_TYPE
if variable is not an integer table.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
integer(kind=i4), | intent(out), | allocatable | :: | values(:) |
Variable values. |
Returns the values of global variable as 8-byte integers.
The function returns the following error codes:
E_ALLOC
if array allocation failed.E_TYPE
if variable is not an integer table.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
integer(kind=i8), | intent(out), | allocatable | :: | values(:) |
Variable values. |
Returns the value of global variable as 4-byte integer. The
function returns E_TYPE
if the variable is not of type integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
integer(kind=i4), | intent(inout) | :: | value |
Variable value. |
Returns the value of global variable as 8-byte integer. The
function returns E_TYPE
if the variable is not of type integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
integer(kind=i8), | intent(inout) | :: | value |
Variable value. |
Returns the value of global variable as logical. The function
returns E_TYPE
if the variable is not of type boolean.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
logical, | intent(inout) | :: | value |
Variable value. |
Returns the value of global variable as 8-byte real. The function
returns E_TYPE
if the variable is not of type number.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
real(kind=r8), | intent(inout) | :: | value |
Variable value. |
Pushes global variable on stack. Returns E_EMPTY
if the variable
does not exist.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
Returns the value of global variable as allocatable string. The
function returns E_TYPE
if the variable is not of type string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lua_state_type), | intent(inout) | :: | lua |
Lua type. |
||
character(len=*), | intent(in) | :: | name |
Variable name. |
||
character(len=*), | intent(inout) | :: | value |
Variable value. |