summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-18 15:03:43 +0800
committerruki <[email protected]>2016-02-15 19:10:24 +0800
commit44c7d62676ce6763d013db0c031e6f651237f510 (patch)
tree2b1d33176f088d05c3931d28cfe7d325cef72d41 /xmake
parent0ad84316db1fee3d4010b31d12353eddf430eddc (diff)
rename sandbox to interpreter
Diffstat (limited to 'xmake')
-rw-r--r--xmake/core/base/interpreter.lua (renamed from xmake/core/sandbox/sandbox.lua)18
1 files changed, 9 insertions, 9 deletions
diff --git a/xmake/core/sandbox/sandbox.lua b/xmake/core/base/interpreter.lua
index 1e534a928..ced71b128 100644
--- a/xmake/core/sandbox/sandbox.lua
+++ b/xmake/core/base/interpreter.lua
@@ -17,18 +17,18 @@
-- Copyright (C) 2009 - 2015, ruki All rights reserved.
--
-- @author ruki
--- @file sandbox.lua
+-- @file interpreter.lua
--
--- define module: sandbox
-local sandbox = sandbox or {}
+-- define module: interpreter
+local interpreter = interpreter or {}
-- load modules
local os = require("base/os")
local utils = require("base/utils")
-- traceback
-function sandbox._traceback(errors)
+function interpreter._traceback(errors)
-- init results
local results = ""
@@ -68,8 +68,8 @@ function sandbox._traceback(errors)
return results
end
--- load sandbox
-function sandbox.load(file)
+-- load interpreter
+function interpreter.load(file)
-- check
assert(file)
@@ -88,7 +88,7 @@ function sandbox.load(file)
-- setfenv(script, env)
-- done the script
- local ok, errors = xpcall(script, sandbox._traceback)
+ local ok, errors = xpcall(script, interpreter._traceback)
if not ok then
return nil, errors
end
@@ -97,5 +97,5 @@ function sandbox.load(file)
return nil
end
--- return module: sandbox
-return sandbox
+-- return module: interpreter
+return interpreter