luaL_optinteger

Function luaL_optinteger 

Source
pub fn luaL_optinteger(l: LuaState, narg: c_int, d: LuaInteger) -> c_int
Expand 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.