summaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-05-21 17:06:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-05-21 17:06:11 -0300
commit019ebcb85fa5ab03f424e21f6758d8533a5b3126 (patch)
tree9638ae9fc8823c58cbd0ea36536518203fa9fb28 /ldo.c
parent889284ebd01dbc923403b0aa38b82dc80ed86af8 (diff)
downloadlua-019ebcb85fa5ab03f424e21f6758d8533a5b3126.tar.gz
lua-019ebcb85fa5ab03f424e21f6758d8533a5b3126.tar.bz2
lua-019ebcb85fa5ab03f424e21f6758d8533a5b3126.zip
errors in finalizers are propagated with code LUA_ERRGCMM (ERRor in
__gc MetaMethod)
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldo.c b/ldo.c
index a9ff037c..2a0d2592 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.62 2009/04/26 21:55:35 roberto Exp roberto $ 2** $Id: ldo.c,v 2.63 2009/04/28 19:04:36 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*/
@@ -60,6 +60,7 @@ void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) {
60 break; 60 break;
61 } 61 }
62 case LUA_ERRSYNTAX: 62 case LUA_ERRSYNTAX:
63 case LUA_ERRGCMM:
63 case LUA_ERRRUN: { 64 case LUA_ERRRUN: {
64 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */ 65 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */
65 break; 66 break;