fluL_newmetatable Function

public function fluL_newmetatable(L, tname) result(errcode)

Arguments

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

Return Value integer


Calls

proc~~flul_newmetatable~~CallsGraph proc~flul_newmetatable fluL_newmetatable interface~lual_newmetatable luaL_newmetatable proc~flul_newmetatable->interface~lual_newmetatable

Source Code

  function fluL_newmetatable(L, tname) result(errcode)
    type(flu_State) :: L
    character(len=*) :: tname
    integer :: errcode

    character(len=len_trim(tname)+1) :: c_name
    integer(kind=c_int) :: c_errcode

    c_name = trim(tname) // c_null_char
    c_errcode = luaL_newmetatable(L%state, c_name)
    errcode = c_errcode
  end function fluL_newmetatable