aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index e588f0c3..1973cb42 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.14 2000/10/24 19:19:15 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.15 2000/10/27 16:15:53 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*/
@@ -184,10 +184,13 @@ static int luaB_settagmethod (lua_State *L) {
184 "function or nil expected"); 184 "function or nil expected");
185 if (strcmp(event, "gc") == 0) 185 if (strcmp(event, "gc") == 0)
186 lua_error(L, "deprecated use: cannot set the `gc' tag method from Lua"); 186 lua_error(L, "deprecated use: cannot set the `gc' tag method from Lua");
187 lua_gettagmethod(L, tag, event);
188 lua_pushvalue(L, 3);
187 lua_settagmethod(L, tag, event); 189 lua_settagmethod(L, tag, event);
188 return 1; 190 return 1;
189} 191}
190 192
193
191static int luaB_gettagmethod (lua_State *L) { 194static int luaB_gettagmethod (lua_State *L) {
192 int tag = luaL_check_int(L, 1); 195 int tag = luaL_check_int(L, 1);
193 const char *event = luaL_check_string(L, 2); 196 const char *event = luaL_check_string(L, 2);