no more `seterrormethod' function

This commit is contained in:
Roberto Ierusalimschy
2000-04-17 16:23:12 -03:00
parent 71219ccc39
commit 62824137d6
4 changed files with 10 additions and 27 deletions

11
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.76 2000/03/27 20:10:21 roberto Exp roberto $
** $Id: lapi.c,v 1.77 2000/03/29 20:19:20 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -102,15 +102,6 @@ lua_Object lua_settagmethod (lua_State *L, int tag, const char *event) {
}
lua_Object lua_seterrormethod (lua_State *L) {
lua_Object temp;
luaA_checkCargs(L, 1);
temp = lua_getglobal(L, "_ERRORMESSAGE");
lua_setglobal(L, "_ERRORMESSAGE");
return temp;
}
lua_Object lua_gettable (lua_State *L) {
luaA_checkCargs(L, 2);
luaV_gettable(L, L->top--);