dm_lua_open Function

public function dm_lua_open(lua, file_path, eval) result(rc)

Opens Lua script and executes it by default. The function returns the following error codes:

  • E_LUA on internal Lua error.
  • E_NOT_FOUND if the file could not be found.
  • E_NULL if the Lua interpreter is not initialised.

Arguments

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

Lua type.

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

Path to Lua script.

logical, intent(in), optional :: eval

Evaluate script once.

Return Value integer


Calls

proc~~dm_lua_open~~CallsGraph proc~dm_lua_open dm_lua_open lual_dofile lual_dofile proc~dm_lua_open->lual_dofile lual_loadfile lual_loadfile proc~dm_lua_open->lual_loadfile proc~dm_file_exists dm_file_exists proc~dm_lua_open->proc~dm_file_exists proc~dm_lua_error dm_lua_error proc~dm_lua_open->proc~dm_lua_error

Called by

proc~~dm_lua_open~~CalledByGraph proc~dm_lua_open dm_lua_open proc~dm_config_open dm_config_open proc~dm_config_open->proc~dm_lua_open