1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Implement safe require

This commit is contained in:
Lars Mueller 2025-04-18 03:25:15 +02:00
parent 78293404c7
commit 7273b664ae
9 changed files with 165 additions and 20 deletions

View file

@ -246,3 +246,9 @@ else
end,
})
end
local t = {}
unittests.register("test_mod_require", function()
assert(require("unittests") == t)
end)
return t