diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-01 13:52:54 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-01 13:52:54 -0200 |
commit | 12dacd3c0e2fe29542520101b19a43d98aea4081 (patch) | |
tree | b1473e47f158f23b487ae20c158b43fe5e1aabfc /ldo.c | |
parent | 23b38176a7ad8d8f830727bcee1669473cf3c1c1 (diff) | |
download | lua-12dacd3c0e2fe29542520101b19a43d98aea4081.tar.gz lua-12dacd3c0e2fe29542520101b19a43d98aea4081.tar.bz2 lua-12dacd3c0e2fe29542520101b19a43d98aea4081.zip |
added an `L' parameter to macros L_TRY & L_THROW (someone may need it).
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { | |||
70 | void luaD_throw (lua_State *L, int errcode) { | 70 | void 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 */ |