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