aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index fc529944..ab0dc604 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.197 2010/01/21 16:49:21 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.198 2010/02/11 15:52:50 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*/
@@ -739,7 +739,7 @@ static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
739 739
740 740
741static int panic (lua_State *L) { 741static int panic (lua_State *L) {
742 fprintf(stderr, "PANIC: unprotected error in call to Lua API (%s)\n", 742 luai_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n",
743 lua_tostring(L, -1)); 743 lua_tostring(L, -1));
744 return 0; /* return to Lua to abort */ 744 return 0; /* return to Lua to abort */
745} 745}