summaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index 7f0bbedb..e5f67d5e 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.10 2004/09/15 20:39:42 roberto Exp roberto $ 2** $Id: ldo.c,v 2.11 2004/09/22 12:37:52 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -70,7 +70,7 @@ static void seterrorobj (lua_State *L, int errcode, StkId oldtop) {
70void luaD_throw (lua_State *L, int errcode) { 70void luaD_throw (lua_State *L, int errcode) {
71 if (L->errorJmp) { 71 if (L->errorJmp) {
72 L->errorJmp->status = errcode; 72 L->errorJmp->status = errcode;
73 L_THROW(L->errorJmp); 73 L_THROW(L, L->errorJmp);
74 } 74 }
75 else { 75 else {
76 if (G(L)->panic) G(L)->panic(L); 76 if (G(L)->panic) G(L)->panic(L);
@@ -84,7 +84,7 @@ int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
84 lj.status = 0; 84 lj.status = 0;
85 lj.previous = L->errorJmp; /* chain new error handler */ 85 lj.previous = L->errorJmp; /* chain new error handler */
86 L->errorJmp = &lj; 86 L->errorJmp = &lj;
87 L_TRY(&lj, 87 L_TRY(L, &lj,
88 (*f)(L, ud); 88 (*f)(L, ud);
89 ); 89 );
90 L->errorJmp = lj.previous; /* restore old error handler */ 90 L->errorJmp = lj.previous; /* restore old error handler */