summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-23 22:18:36 +0800
committerOpportunityLiu <[email protected]>2019-07-23 22:18:36 +0800
commitae7d6509749944564b939bd36cf6ab895dcff0af (patch)
treeeeee70bc0b697b875f75adcfd7fcd3f274df54ff
parent1b29f85d1e288a3a46086d71ac62301fa0c9b05f (diff)
remove local
-rw-r--r--xmake/core/_xmake_main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua
index 3ccc70cc9..25c251b20 100644
--- a/xmake/core/_xmake_main.lua
+++ b/xmake/core/_xmake_main.lua
@@ -31,7 +31,7 @@ xmake._PROJECT_DIR = _PROJECT_DIR
xmake._PROJECT_FILE = "xmake.lua"
xmake._WORKING_DIR = os.curdir()
-local function loadfileimpl(filepath, mode)
+function _loadfileimpl(filepath, mode)
-- init displaypath
local binary = false
@@ -79,7 +79,7 @@ function loadfile(filepath, mode)
end
-- load file
- local script, errors = loadfileimpl(filepath, mode)
+ local script, errors = _loadfileimpl(filepath, mode)
if script then
_loadcache[filepath] = {script = script, mtime = mtime or os.mtime(filepath)}
end
@@ -89,7 +89,7 @@ end
-- init package path
table.insert(package.loaders, 2, function(v)
local filepath = xmake._PROGRAM_DIR .. "/core/" .. v .. ".lua"
- local script, serr = loadfileimpl(filepath)
+ local script, serr = _loadfileimpl(filepath)
if not script then
return "\n\tfailed to load " .. filepath .. " : " .. serr
end