fluL_loadstring Function

public function fluL_loadstring(L, string) result(errcode)

Arguments

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

Return Value integer


Calls

proc~~flul_loadstring~~CallsGraph proc~flul_loadstring fluL_loadstring interface~lual_loadstring luaL_loadstring proc~flul_loadstring->interface~lual_loadstring

Called by

proc~~flul_loadstring~~CalledByGraph proc~flul_loadstring fluL_loadstring proc~open_config_chunk open_config_chunk proc~open_config_chunk->proc~flul_loadstring

Contents

Source Code


Source Code

  function fluL_loadstring(L, string) result(errcode)
    type(flu_State) :: L
    character(len=*) :: string
    integer :: errcode

    character(len=len_trim(string)+1) :: c_string
    integer(kind=c_int) :: c_errcode

    c_string = trim(string) // c_null_char
    c_errcode = luaL_loadstring(L%state, c_string)
    errcode = c_errcode

  end function fluL_loadstring