diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-18 17:18:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-18 17:18:41 -0200 |
commit | 4274738e81ad12923c2ae5c769b3350c36cf1505 (patch) | |
tree | 995af0a432f0e6a7b2b42f085c8b7ee6f21b4804 /lauxlib.c | |
parent | 0d7d559dcc4291c2df5106ec121a43239b1faa91 (diff) | |
download | lua-4274738e81ad12923c2ae5c769b3350c36cf1505.tar.gz lua-4274738e81ad12923c2ae5c769b3350c36cf1505.tar.bz2 lua-4274738e81ad12923c2ae5c769b3350c36cf1505.zip |
new macro 'luai_writestringerror'
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
741 | static int panic (lua_State *L) { | 741 | static 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 | } |