diff options
Diffstat (limited to 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 10 |
1 files changed, 1 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.175 2005/05/16 21:19:00 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.176 2005/05/17 19:49:15 roberto Exp roberto $ |
| 3 | ** Basic library | 3 | ** Basic library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -331,13 +331,6 @@ static int luaB_assert (lua_State *L) { | |||
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | 333 | ||
| 334 | static int luaB_getn (lua_State *L) { | ||
| 335 | luaL_checktype(L, 1, LUA_TTABLE); | ||
| 336 | lua_pushinteger(L, lua_objsize(L, 1)); | ||
| 337 | return 1; | ||
| 338 | } | ||
| 339 | |||
| 340 | |||
| 341 | static int luaB_unpack (lua_State *L) { | 334 | static int luaB_unpack (lua_State *L) { |
| 342 | int i = luaL_optint(L, 2, 1); | 335 | int i = luaL_optint(L, 2, 1); |
| 343 | int e = luaL_optint(L, 3, -1); | 336 | int e = luaL_optint(L, 3, -1); |
| @@ -454,7 +447,6 @@ static const luaL_reg base_funcs[] = { | |||
| 454 | {"tostring", luaB_tostring}, | 447 | {"tostring", luaB_tostring}, |
| 455 | {"type", luaB_type}, | 448 | {"type", luaB_type}, |
| 456 | {"assert", luaB_assert}, | 449 | {"assert", luaB_assert}, |
| 457 | {"getn", luaB_getn}, | ||
| 458 | {"unpack", luaB_unpack}, | 450 | {"unpack", luaB_unpack}, |
| 459 | {"select", luaB_select}, | 451 | {"select", luaB_select}, |
| 460 | {"rawequal", luaB_rawequal}, | 452 | {"rawequal", luaB_rawequal}, |
