aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-31 14:25:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-31 14:25:08 -0300
commit83d2dbb15d22550e88f86e1d51d69945fd52c136 (patch)
treed5c1caa287fe27cb3c5ea426ffc256e92fc66044
parent4e43741943780b6fc21d2e93d1e99812778cad24 (diff)
downloadlua-83d2dbb15d22550e88f86e1d51d69945fd52c136.tar.gz
lua-83d2dbb15d22550e88f86e1d51d69945fd52c136.tar.bz2
lua-83d2dbb15d22550e88f86e1d51d69945fd52c136.zip
Lua will abort anyway, so 'panic' does not need to.
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index cb7698e2..74429996 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.182 2009/02/18 17:20:56 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.184 2009/02/27 18:18:19 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -727,7 +727,7 @@ static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
727static int panic (lua_State *L) { 727static int panic (lua_State *L) {
728 fprintf(stderr, "PANIC: unprotected error in call to Lua API (%s)\n", 728 fprintf(stderr, "PANIC: unprotected error in call to Lua API (%s)\n",
729 lua_tostring(L, -1)); 729 lua_tostring(L, -1));
730 return (exit(EXIT_FAILURE), 0); /* do not return to Lua */ 730 return 0; /* return to Lua to abort */
731} 731}
732 732
733 733