diff options
Diffstat (limited to 'lib/lua/src/lundump.c')
-rw-r--r-- | lib/lua/src/lundump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/lua/src/lundump.c b/lib/lua/src/lundump.c index a8692a8..1dd1b01 100644 --- a/lib/lua/src/lundump.c +++ b/lib/lua/src/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 1.5 2007-07-27 10:05:54 pixel Exp $ +** $Id: lundump.c,v 1.6 2008-02-17 00:35:20 pixel Exp $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -29,6 +29,7 @@ typedef struct { #ifdef LUAC_TRUST_BINARIES #define IF(c,s) +#define error(S,s) #else #define IF(c,s) if (c) error(S,s) @@ -47,6 +48,7 @@ static void error(LoadState* S, const char* why) static void LoadBlock(LoadState* S, void* b, size_t size) { size_t r=luaZ_read(S->Z,b,size); + UNUSED(r); IF (r!=0, "unexpected end"); } @@ -122,7 +124,7 @@ static void LoadConstants(LoadState* S, Proto* f) setsvalue2n(S->L,o,LoadString(S)); break; default: - IF (1, "bad constant"); + error(S,"bad constant"); break; } } |