]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r354246: liblua: add loader.lua_path
authorKyle Evans <kevans@FreeBSD.org>
Tue, 3 Dec 2019 18:50:18 +0000 (18:50 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 3 Dec 2019 18:50:18 +0000 (18:50 +0000)
commit71f0711edec2d95229f1a0f63b60040c2195bfb2
tree108982f9a75d1518425c71ada4297c0c62569c3d
parent67ed37c5690a155d0b79c73a319d090c9a02fcc0
MFC r354246: liblua: add loader.lua_path

As described previously, loader.lua_path is absolute path where scripts are
installed. A future commit will use this to build paths for dofile in
try_include, rather than the current pcall/require setup that makes it more
difficult to coordinate loader aborts from local.lua -- we do not need the
flexibility of require(), and local.lua is in-fact not a 'module-like' file
as we will not be referencing anything from it.
stand/liblua/lutils.c