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.| Type | Intent | Optional | 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. |