summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/lundump.c')
-rw-r--r--apps/plugins/lua/lundump.c13
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 @@
#include "lundump.h"
#include "lzio.h"
+#ifndef LUA_DISABLE_BYTECODE
+
typedef struct {
lua_State* L;
ZIO* Z;
@@ -225,3 +227,14 @@ void luaU_header (char* h)
*h++=(char)sizeof(lua_Number);
*h++=(char)(((lua_Number)0.5)==0); /* is lua_Number integral? */
}
+
+#else /* LUA_DISABLE_BYTECODE */
+#include "lauxlib.h"
+Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name)
+{
+ (void) Z;
+ (void) buff;
+ luaL_error(L, LUA_QL("%s") " bytecode not supported", name);
+ return NULL;
+}
+#endif