aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-23 09:50:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-23 09:50:11 -0300
commitc25380c28da154b271d91543e61e27ae974e9ecc (patch)
tree313eaeaee708cd32cd32ba9ffd58872adc5ca0f4 /ldo.c
parent03094da80cc8e501cc33f1f3e37bf8536556b4e9 (diff)
downloadlua-c25380c28da154b271d91543e61e27ae974e9ecc.tar.gz
lua-c25380c28da154b271d91543e61e27ae974e9ecc.tar.bz2
lua-c25380c28da154b271d91543e61e27ae974e9ecc.zip
details (using proper version of 'setobj')
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index 5e28fda6..02f93a41 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.158 2017/05/13 12:57:20 roberto Exp roberto $ 2** $Id: ldo.c,v 2.159 2017/05/13 13:54:47 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*/
@@ -116,7 +116,7 @@ l_noret luaD_throw (lua_State *L, int errcode) {
116 global_State *g = G(L); 116 global_State *g = G(L);
117 L->status = cast_byte(errcode); /* mark it as dead */ 117 L->status = cast_byte(errcode); /* mark it as dead */
118 if (g->mainthread->errorJmp) { /* main thread has a handler? */ 118 if (g->mainthread->errorJmp) { /* main thread has a handler? */
119 setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */ 119 setobj2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */
120 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ 120 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */
121 } 121 }
122 else { /* no handler at all; abort */ 122 else { /* no handler at all; abort */