diff options
Diffstat (limited to 'apps/plugins/lua/lundump.c')
-rw-r--r-- | apps/plugins/lua/lundump.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/lua/lundump.c b/apps/plugins/lua/lundump.c index 6a8422de30..967b45c94b 100644 --- a/apps/plugins/lua/lundump.c +++ b/apps/plugins/lua/lundump.c | |||
@@ -20,6 +20,8 @@ | |||
20 | #include "lundump.h" | 20 | #include "lundump.h" |
21 | #include "lzio.h" | 21 | #include "lzio.h" |
22 | 22 | ||
23 | #ifndef LUA_DISABLE_BYTECODE | ||
24 | |||
23 | typedef struct { | 25 | typedef struct { |
24 | lua_State* L; | 26 | lua_State* L; |
25 | ZIO* Z; | 27 | ZIO* Z; |
@@ -225,3 +227,14 @@ void luaU_header (char* h) | |||
225 | *h++=(char)sizeof(lua_Number); | 227 | *h++=(char)sizeof(lua_Number); |
226 | *h++=(char)(((lua_Number)0.5)==0); /* is lua_Number integral? */ | 228 | *h++=(char)(((lua_Number)0.5)==0); /* is lua_Number integral? */ |
227 | } | 229 | } |
230 | |||
231 | #else /* LUA_DISABLE_BYTECODE */ | ||
232 | #include "lauxlib.h" | ||
233 | Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name) | ||
234 | { | ||
235 | (void) Z; | ||
236 | (void) buff; | ||
237 | luaL_error(L, LUA_QL("%s") " bytecode not supported", name); | ||
238 | return NULL; | ||
239 | } | ||
240 | #endif | ||