diff options
Diffstat (limited to 'apps/plugins/lua/ldump.c')
-rw-r--r-- | apps/plugins/lua/ldump.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/lua/ldump.c b/apps/plugins/lua/ldump.c index c9d3d4870f..9afba60a37 100644 --- a/apps/plugins/lua/ldump.c +++ b/apps/plugins/lua/ldump.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include "lstate.h" | 15 | #include "lstate.h" |
16 | #include "lundump.h" | 16 | #include "lundump.h" |
17 | 17 | ||
18 | #ifndef LUA_DISABLE_BYTECODE | ||
19 | |||
18 | typedef struct { | 20 | typedef struct { |
19 | lua_State* L; | 21 | lua_State* L; |
20 | lua_Writer writer; | 22 | lua_Writer writer; |
@@ -162,3 +164,14 @@ int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip | |||
162 | DumpFunction(f,NULL,&D); | 164 | DumpFunction(f,NULL,&D); |
163 | return D.status; | 165 | return D.status; |
164 | } | 166 | } |
167 | #else /* LUA_DISABLE_BYTECODE */ | ||
168 | #include "lauxlib.h" | ||
169 | int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) | ||
170 | { | ||
171 | (void) f; | ||
172 | (void) w; | ||
173 | (void) data; | ||
174 | (void) strip; | ||
175 | return luaL_error(L, " bytecode not supported"); | ||
176 | } | ||
177 | #endif | ||