diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-27 17:08:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-27 17:08:02 -0300 |
commit | 102a1be6159b34190813bfd7a7ed6c04633c6200 (patch) | |
tree | b03054b4832fefea3c9f114d3b367f2fa0dbac88 /lbuiltin.c | |
parent | 4c031966976a0ae5d24b709fe94e90dc3fbac9ef (diff) | |
download | lua-102a1be6159b34190813bfd7a7ed6c04633c6200.tar.gz lua-102a1be6159b34190813bfd7a7ed6c04633c6200.tar.bz2 lua-102a1be6159b34190813bfd7a7ed6c04633c6200.zip |
no more support for gc TM for tables
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.96 2000/03/10 18:37:44 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.97 2000/03/24 17:26:08 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -239,10 +239,8 @@ void luaB_settagmethod (lua_State *L) { | |||
239 | lua_Object nf = luaL_nonnullarg(L, 3); | 239 | lua_Object nf = luaL_nonnullarg(L, 3); |
240 | luaL_arg_check(L, lua_isnil(L, nf) || lua_isfunction(L, nf), 3, | 240 | luaL_arg_check(L, lua_isnil(L, nf) || lua_isfunction(L, nf), 3, |
241 | "function or nil expected"); | 241 | "function or nil expected"); |
242 | #ifndef LUA_COMPAT_GC | ||
243 | if (strcmp(event, "gc") == 0 && tag != TAG_NIL) | 242 | if (strcmp(event, "gc") == 0 && tag != TAG_NIL) |
244 | lua_error(L, "cannot set this `gc' tag method from Lua"); | 243 | lua_error(L, "deprecated use: cannot set the `gc' tag method from Lua"); |
245 | #endif | ||
246 | lua_pushobject(L, nf); | 244 | lua_pushobject(L, nf); |
247 | lua_pushobject(L, lua_settagmethod(L, tag, event)); | 245 | lua_pushobject(L, lua_settagmethod(L, tag, event)); |
248 | } | 246 | } |