flu_isNil Function

public function flu_isNil(L, index) result(is_Nil)

Arguments

Type IntentOptional Attributes Name
type(flu_State) :: L
integer :: index

Return Value logical


Calls

proc~~flu_isnil~~CallsGraph proc~flu_isnil flu_isNil interface~lua_type lua_type proc~flu_isnil->interface~lua_type

Source Code

  function flu_isNil(L, index) result(is_Nil)
    type(flu_State) :: L
    integer         :: index
    logical         :: is_Nil

    integer(kind=c_int) :: c_index

    c_index = int(index, kind = c_int)
    ! Only defined as a Macro, using lua_type:
    is_Nil = (lua_Type(L%state, c_index) .eq. LUA_TNIL)
  end function flu_isNil