summaryrefslogtreecommitdiff
path: root/src/lua-interface.cpp
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-08 04:14:44 +0100
committerPixel <pixel@nobis-crew.org>2009-11-08 04:14:44 +0100
commit6aa0f3e577ab46000a04447ba8f42faf1e96fa7c (patch)
tree7810df9031e80c89f2402b9a81435a52d37bb707 /src/lua-interface.cpp
parent839e6ab8cfda125ba17f521b21f451e78ff78227 (diff)
LuaJIT doesn't support Lua bytecode. Good thing that I don't either.
Diffstat (limited to 'src/lua-interface.cpp')
-rw-r--r--src/lua-interface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp
index b697e9c..93a5fc0 100644
--- a/src/lua-interface.cpp
+++ b/src/lua-interface.cpp
@@ -47,8 +47,6 @@
#include <Main.h>
#include <lua-plugin.h>
-#include "lua-interface-hc.h"
-
#ifndef _MSVC
// this seems ignored under apple's gcc... dammit.
// Gah. msys doesn't support that properly either.
@@ -61,6 +59,9 @@
#define NO_SMART_MODULES
#endif
+extern unsigned int size_lua_interface_lua;
+extern unsigned char lua_interface_lua[];
+
extern "C" {
extern void luaconfigfiles_init(Lua * L) WEAK;
@@ -936,7 +937,7 @@ virtual int startup() throw (GeneralException) {
if (!compile && builtin) {
Buffer built;
- built.write(lua_interface_lua, lua_interface_lua_size);
+ built.write(lua_interface_lua, size_lua_interface_lua);
try {
L->load(&built);