dm_lua_table Function

public function dm_lua_table(lua, name, n) result(rc)

Loads global table of given name. The function returns the following error codes:

  • E_NOT_FOUND if the name does not exist.
  • E_NULL if the Lua interpreter is not initialised.
  • E_TYPE if variable on stack is not a table.

Arguments

Type IntentOptional Attributes Name
type(lua_state_type), intent(inout) :: lua

Lua type.

character(len=*), intent(in) :: name

Name of table.

integer, intent(out), optional :: n

Number of elements in table.

Return Value integer


Calls

proc~~dm_lua_table~~CallsGraph proc~dm_lua_table dm_lua_table lua_getglobal lua_getglobal proc~dm_lua_table->lua_getglobal lua_istable lua_istable proc~dm_lua_table->lua_istable lua_pop lua_pop proc~dm_lua_table->lua_pop proc~dm_lua_table_size dm_lua_table_size proc~dm_lua_table->proc~dm_lua_table_size lua_rawlen lua_rawlen proc~dm_lua_table_size->lua_rawlen

Called by

proc~~dm_lua_table~~CalledByGraph proc~dm_lua_table dm_lua_table proc~dm_config_open dm_config_open proc~dm_config_open->proc~dm_lua_table