diff options
author | Lua Team <team@lua.org> | 2004-03-24 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2004-03-24 12:00:00 +0000 |
commit | ced7bbbe7a257ce6de94069d5dbf6672aeafd4d9 (patch) | |
tree | 2a01a79e6a4f451dccd247c70310ad957204cefa /etc/noparser.c | |
parent | e7731a8fb8a317aa5c444ef073bfad82fa5baa54 (diff) | |
download | lua-github-5.1-work0.tar.gz |
Lua 5.1-work05.1-work0
Diffstat (limited to 'etc/noparser.c')
-rw-r--r-- | etc/noparser.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/etc/noparser.c b/etc/noparser.c index 00c2b126..9d52f7c0 100644 --- a/etc/noparser.c +++ b/etc/noparser.c @@ -17,10 +17,24 @@ void luaX_init (lua_State *L) { UNUSED(L); } -Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff) { +Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { UNUSED(z); UNUSED(buff); lua_pushstring(L,"parser not loaded"); lua_error(L); return NULL; } + +/* +* If you also want to avoid the dump module, ldump.o, enable the code below. +*/ +#ifdef NODUMP +#include "lundump.h" + +int luaU_dump (lua_State* L, const Proto* Main, lua_Chunkwriter w, void* data, int strip) +{ + return 0; + lua_pushstring(L,"dumper not loaded"); + lua_error(L); +} +#endif |