If the function argument narg is a number, returns this number cast to a long. If this argument is absent or is nil, returns d. Otherwise, raises an error.
publicstaticluaL_optlong ( lua_StateL, intn, intd ) : int
L
lua_State
n
int
d
int
return
int
public static int luaL_optlong(lua_State L, int n, int d)
{
return luaL_optinteger(L, n, d);
}