Fixed LUA compilaition issue.

This commit is contained in:
rakshasa
2025-03-30 17:58:18 +02:00
committed by Jari Sundell
parent d5b28c30a9
commit 2a998df4f1
2 changed files with 72 additions and 32 deletions
+5 -1
View File
@@ -17,6 +17,7 @@ public:
LuaEngine();
~LuaEngine();
#ifdef HAVE_LUA
// lua_CFunctions
static int lua_init_module(lua_State* l_state);
@@ -29,15 +30,18 @@ private:
lua_State* m_luaState;
#endif
};
torrent::Object execute_lua(LuaEngine* engine, rpc::target_type target, const torrent::Object& raw_args, int flags);
#ifdef HAVE_LUA
int rtorrent_call(lua_State* l_state);
void init_rtorrent_module(lua_State* l_state);
void object_to_lua(lua_State* l_state, torrent::Object const& object);
void check_lua_status(lua_State* l_state, int status);
torrent::Object lua_to_object(lua_State* l_state);
torrent::Object lua_callstack_to_object(lua_State* l_state, int command_flags, rpc::target_type* target);
torrent::Object lua_callstack_to_object(lua_State* l_state, int command_flags, rpc::target_type* target, std::function<void()>* deleter);
#endif
} // namespace rpc