summaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-13 10:44:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-13 10:44:50 -0300
commiteb3de8768a6b614597f7e5f018fc31a9f52441df (patch)
treeea6e0e48f6d6d8bccb4c168171bbb13a3bca1c99 /ldblib.c
parent864c96f36ce8410b03652b1cb9800e4b3c76bcf7 (diff)
downloadlua-eb3de8768a6b614597f7e5f018fc31a9f52441df.tar.gz
lua-eb3de8768a6b614597f7e5f018fc31a9f52441df.tar.bz2
lua-eb3de8768a6b614597f7e5f018fc31a9f52441df.zip
`rawcall' -> `upcall' (unprotected call)
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 7fbff55d..6598a8f6 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.55 2002/06/05 17:24:04 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.56 2002/06/06 12:40:36 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -117,7 +117,7 @@ static void hookf (lua_State *L, void *key) {
117 lua_rawget(L, LUA_REGISTRYINDEX); 117 lua_rawget(L, LUA_REGISTRYINDEX);
118 if (lua_isfunction(L, -1)) { 118 if (lua_isfunction(L, -1)) {
119 lua_pushvalue(L, -2); /* original argument (below function) */ 119 lua_pushvalue(L, -2); /* original argument (below function) */
120 lua_rawcall(L, 1, 0); 120 lua_upcall(L, 1, 0);
121 } 121 }
122 else 122 else
123 lua_pop(L, 1); /* pop result from gettable */ 123 lua_pop(L, 1); /* pop result from gettable */