diff options
Diffstat (limited to 'src/anylike.c')
-rw-r--r-- | src/anylike.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/anylike.c b/src/anylike.c index b154c45..86d055d 100644 --- a/src/anylike.c +++ b/src/anylike.c @@ -89,7 +89,8 @@ void cleanup_crypt() #endif } -#include "anylike_lua_bytecode.h" +extern const u_int8_t anylike_lua_bytecode[]; +extern const u_int32_t anylike_lua_bytecode_len; #define LUA_MAIN_LOOP_FUNC "main_loop" @@ -114,7 +115,7 @@ int init_main_loop(lua_State *L) lua_call(L, 1, 0); } - int ret = luaL_loadbuffer(L, anylike_lua_bytecode, sizeof(anylike_lua_bytecode), "anylike"); + int ret = luaL_loadbuffer(L, anylike_lua_bytecode, anylike_lua_bytecode_len, "anylike"); if(ret) { const char* err_str = luaL_checkstring(L, -1); switch(ret) { |