pub fn luaL_optinteger(l: LuaState, narg: c_int, d: LuaInteger) -> c_intExpand description
If the function argument narg is a number, returns this number cast to a LuaInteger.
If this argument is absent or is nil, returns d. Otherwise, raises an error.