Skip to main content

opt_integer

Function opt_integer 

Source
pub fn opt_integer(
    state: &mut LuaState,
    arg: i32,
    def: i64,
) -> Result<i64, LuaError>
Expand description

Return the integer at arg; if absent/nil return def.

C: LUALIB_API lua_Integer luaL_optinteger(lua_State *L, int arg, lua_Integer def)