From b182b416169dc5286df737b7bf64dd6be1bb8eef Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 13 Sep 2023 19:40:22 -0300 Subject: Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53) --- compat53/module.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compat53') diff --git a/compat53/module.lua b/compat53/module.lua index 30be6b5..225d8ca 100644 --- a/compat53/module.lua +++ b/compat53/module.lua @@ -67,6 +67,15 @@ if lua_version < "5.3" then end + -- load io functions + local io_ok, iolib = pcall(require, "compat53.io") + if io_ok then + for k,v in pairs(iolib) do + M.io[k] = v + end + end + + -- load string packing functions local str_ok, strlib = pcall(require, "compat53.string") if str_ok then -- cgit v1.2.3-55-g6feb