aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-16 14:08:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-16 14:08:28 -0300
commitc11d374c592d10b8ed649ffe501191039ee18757 (patch)
tree52a3b434d6197ae36c7f132b370c9807251effe0 /ldo.c
parent13230c451ba2feaef1c92c391451ee6471b15bb7 (diff)
downloadlua-c11d374c592d10b8ed649ffe501191039ee18757.tar.gz
lua-c11d374c592d10b8ed649ffe501191039ee18757.tar.bz2
lua-c11d374c592d10b8ed649ffe501191039ee18757.zip
`panic' function configurable via API
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index fc0c4122..29276f1b 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 1.169 2002/04/10 12:10:54 roberto Exp roberto $ 2** $Id: ldo.c,v 1.170 2002/04/15 19:34:42 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*/
@@ -501,8 +501,7 @@ void luaD_breakrun (lua_State *L, int errcode) {
501 longjmp(L->errorJmp->b, 1); 501 longjmp(L->errorJmp->b, 1);
502 } 502 }
503 else { 503 else {
504 if (errcode != LUA_ERRMEM && errcode != LUA_ERRERR) 504 G(L)->panic(L);
505 message(L, "unable to recover; exiting\n");
506 exit(EXIT_FAILURE); 505 exit(EXIT_FAILURE);
507 } 506 }
508} 507}