aboutsummaryrefslogtreecommitdiff
path: root/src/tools.hpp
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2025-07-24 16:51:49 +0200
committerBenoit Germain <bnt.germain@gmail.com>2025-07-24 16:51:49 +0200
commitd8acb18ce8bf6e89a042d166f61b2934e8722cf0 (patch)
tree69f5046056f4aa38b868b057055da8144e029846 /src/tools.hpp
parenteb997664a5a0a7890efa050982854a1447aec70f (diff)
downloadlanes-d8acb18ce8bf6e89a042d166f61b2934e8722cf0.tar.gz
lanes-d8acb18ce8bf6e89a042d166f61b2934e8722cf0.tar.bz2
lanes-d8acb18ce8bf6e89a042d166f61b2934e8722cf0.zip
Rework function bytecode dumping to be Lua5.5-ready
* prepare the luaL_Buffer in the destination state instead of the source state to prevent stack issues when everything happens in the same state
Diffstat (limited to 'src/tools.hpp')
-rw-r--r--src/tools.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools.hpp b/src/tools.hpp
index 51cbb9b..c555344 100644
--- a/src/tools.hpp
+++ b/src/tools.hpp
@@ -37,7 +37,6 @@ namespace tools {
37 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_); 37 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_);
38 [[nodiscard]] 38 [[nodiscard]]
39 std::string_view PushFQN(lua_State* L_, StackIndex t_); 39 std::string_view PushFQN(lua_State* L_, StackIndex t_);
40 [[nodiscard]] 40 void PushFunctionBytecode(SourceState L1_, DestState L2_, int strip_);
41 int PushFunctionBytecode(lua_State* L_, int strip_);
42 void SerializeRequire(lua_State* L_); 41 void SerializeRequire(lua_State* L_);
43} // namespace tools 42} // namespace tools