From c67c7bb2cde0d418f72c8ac1ef57f15669b8a2bf Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 22 Jul 2025 15:36:56 +0200 Subject: New helper to push function bytecode (to facilitate Lua 5.5 support) --- src/tools.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tools.hpp') diff --git a/src/tools.hpp b/src/tools.hpp index 14f9855..51cbb9b 100644 --- a/src/tools.hpp +++ b/src/tools.hpp @@ -37,5 +37,7 @@ namespace tools { void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_); [[nodiscard]] std::string_view PushFQN(lua_State* L_, StackIndex t_); + [[nodiscard]] + int PushFunctionBytecode(lua_State* L_, int strip_); void SerializeRequire(lua_State* L_); } // namespace tools -- cgit v1.2.3-55-g6feb