fluL_loadfile Function

public function fluL_loadfile(L, filename) result(errcode)

Arguments

Type IntentOptional Attributes Name
type(flu_State) :: L
character(len=*) :: filename

Return Value integer


Calls

proc~~flul_loadfile~~CallsGraph proc~flul_loadfile fluL_loadfile interface~lual_loadfilex luaL_loadfilex proc~flul_loadfile->interface~lual_loadfilex

Called by

proc~~flul_loadfile~~CalledByGraph proc~flul_loadfile fluL_loadfile proc~aot_file_to_buffer aot_file_to_buffer proc~aot_file_to_buffer->proc~flul_loadfile proc~open_config_file open_config_file proc~open_config_file->proc~flul_loadfile program~test test program~test->proc~flul_loadfile proc~aot_path_open_table aot_path_open_table proc~aot_path_open_table->proc~open_config_file interface~aot_path_open aot_path_open interface~aot_path_open->proc~aot_path_open_table proc~aot_path_open_fun aot_path_open_fun interface~aot_path_open->proc~aot_path_open_fun proc~aot_path_open_fun->proc~aot_path_open_table

Source Code

  function fluL_loadfile(L, filename) result(errcode)
    type(flu_State) :: L
    character(len=*) :: filename
    integer :: errcode

    character(len=len_trim(filename)+1) :: c_filename
    character(len=3) :: c_mode
    integer(kind=c_int) :: c_errcode

    c_filename = trim(filename) // c_null_char
    c_mode = "bt" // c_null_char
    c_errcode = luaL_loadfilex(L%state, c_filename, c_mode)
    errcode = c_errcode
  end function fluL_loadfile