new experimental syntax using reserved word 'undef'
This commit is contained in:
20
lbaselib.c
20
lbaselib.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lbaselib.c,v 1.321 2018/02/27 17:48:28 roberto Exp roberto $
|
||||
** $Id: lbaselib.c,v 1.322 2018/02/27 18:47:32 roberto Exp roberto $
|
||||
** Basic library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -170,22 +170,6 @@ static int luaB_rawset (lua_State *L) {
|
||||
}
|
||||
|
||||
|
||||
static int luaB_keyin (lua_State *L) {
|
||||
luaL_checkany(L, 2); /* ensures a first argument too */
|
||||
lua_settop(L, 2);
|
||||
lua_pushboolean(L, lua_keyin(L, 1));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_removekey (lua_State *L) {
|
||||
luaL_checkany(L, 2); /* ensures a first argument too */
|
||||
lua_settop(L, 2);
|
||||
lua_removekey(L, 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int pushmode (lua_State *L, int oldmode) {
|
||||
lua_pushstring(L, (oldmode == LUA_GCINC) ? "incremental" : "generational");
|
||||
return 1;
|
||||
@@ -503,8 +487,6 @@ static const luaL_Reg base_funcs[] = {
|
||||
{"rawlen", luaB_rawlen},
|
||||
{"rawget", luaB_rawget},
|
||||
{"rawset", luaB_rawset},
|
||||
{"keyin", luaB_keyin},
|
||||
{"removekey", luaB_removekey},
|
||||
{"select", luaB_select},
|
||||
{"setmetatable", luaB_setmetatable},
|
||||
{"tonumber", luaB_tonumber},
|
||||
|
||||
Reference in New Issue
Block a user