aot_path_close_table Subroutine

private subroutine aot_path_close_table(me, conf, closeLua)

This routine closes all the table opened in aot_path_open_table.

Arguments

Type IntentOptional 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.

logical, intent(in), optional :: closeLua

A flag to indicate, wether to close the Lua script, default is false.


Calls

proc~~aot_path_close_table~~CallsGraph proc~aot_path_close_table aot_path_close_table proc~aot_table_close aot_table_close proc~aot_path_close_table->proc~aot_table_close proc~close_config close_config proc~aot_path_close_table->proc~close_config proc~flu_settop flu_settop proc~aot_table_close->proc~flu_settop proc~flu_close flu_close proc~close_config->proc~flu_close interface~lua_close lua_close proc~flu_close->interface~lua_close interface~lua_settop lua_settop proc~flu_settop->interface~lua_settop

Called by

proc~~aot_path_close_table~~CalledByGraph proc~aot_path_close_table aot_path_close_table interface~aot_path_close aot_path_close interface~aot_path_close->proc~aot_path_close_table proc~aot_path_close_fun aot_path_close_fun interface~aot_path_close->proc~aot_path_close_fun proc~aot_path_close_fun->proc~aot_path_close_table

Source Code

  subroutine aot_path_close_table(me, conf, closeLua)
    !> The path object to open as a function
    type(aot_path_type), intent(inout) :: me
    !> The flu_state handle, which is either opened according to
    !! the path, or used to open the path in.
    type(flu_state) :: conf
    !> A flag to indicate, wether to close the Lua script, default
    !! is false.
    logical, intent(in), optional :: closeLua

    if (me%roothandle /= 0) then
      call aot_table_close(L=conf, thandle=me%roothandle)
    end if

    if (present(closeLua)) then
      if (closeLua) then
        call close_config(conf)
      end if
    end if

  end subroutine aot_path_close_table