Prechádzať zdrojové kódy

hooks may call `error' to break a chunk.

Roberto Ierusalimschy 25 rokov pred
rodič
commit
93a5649d40
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      ldblib.c

+ 2 - 2
ldblib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ldblib.c,v 1.26 2000/10/26 19:04:22 roberto Exp roberto $
+** $Id: ldblib.c,v 1.27 2000/10/27 16:15:53 roberto Exp roberto $
 ** Interface from Lua to its debug API
 ** Interface from Lua to its debug API
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -122,7 +122,7 @@ static void hookf (lua_State *L, void *key) {
   lua_gettable(L, -2);
   lua_gettable(L, -2);
   if (lua_isfunction(L, -1)) {
   if (lua_isfunction(L, -1)) {
     lua_pushvalue(L, 1);
     lua_pushvalue(L, 1);
-    lua_call(L, 1, 0);
+    lua_rawcall(L, 1, 0);
   }
   }
   else
   else
     lua_pop(L, 1);  /* pop result from gettable */
     lua_pop(L, 1);  /* pop result from gettable */