This subroutine opens all the tables on the way to the final head node of the given path.
The handle can be either passed in, to be used for the look up of the path, or, when specifying the optional openLua argument as true, it will return the handle to the newly opened Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_path_type), | intent(inout) | :: | me | The path object to open as a function |
||
type(flu_State) | :: | conf | The flu_state handle, which is either opened according to the path, or used to open the path in. |
|||
integer, | intent(out) | :: | thandle | return handle of the last opened table |
||
logical, | intent(in), | optional | :: | openLua | A flag to indicate, wether to open the Lua script, default is false, in which case the conf argument has to link to an actual Lua state handle. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | private | :: | new_conf | ||||
type(aot_path_node_type), | private, | pointer | :: | curNode | => | NULL() | |
integer, | private | :: | myHandle | = | 0 | ||
integer, | private | :: | prevHandle | = | -1 |