summaryrefslogtreecommitdiff
path: root/xmake/core/base/deprecated
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-26 20:51:35 +0800
committerruki <[email protected]>2016-03-26 20:51:35 +0800
commitf599ffc2ca8f452b70e2fb928816c5b78302ee1b (patch)
tree59cf1fa8ad1cc2a9013641fac59e42d52cabb64e /xmake/core/base/deprecated
parent2d269f2eb8a61c7b4225a766ceedec4fd1858e95 (diff)
modify self interfaces
Diffstat (limited to 'xmake/core/base/deprecated')
-rw-r--r--xmake/core/base/deprecated/interpreter.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/deprecated/interpreter.lua b/xmake/core/base/deprecated/interpreter.lua
index 8ed452588..22e0cde00 100644
--- a/xmake/core/base/deprecated/interpreter.lua
+++ b/xmake/core/base/deprecated/interpreter.lua
@@ -32,7 +32,7 @@ local string = require("base/string")
local sandbox = require("sandbox/sandbox")
-- register api for set_scope()
-function deprecated_interpreter.api_register_set_scope(self, ...)
+function deprecated_interpreter:api_register_set_scope(...)
-- check
assert(self)
@@ -71,7 +71,7 @@ function deprecated_interpreter.api_register_set_scope(self, ...)
end
-- register api for add_scope()
-function deprecated_interpreter.api_register_add_scope(self, ...)
+function deprecated_interpreter:api_register_add_scope(...)
-- check
assert(self)
@@ -110,7 +110,7 @@ function deprecated_interpreter.api_register_add_scope(self, ...)
end
-- register api for set_script
-function deprecated_interpreter.api_register_set_script(self, scope_kind, prefix, ...)
+function deprecated_interpreter:api_register_set_script(scope_kind, prefix, ...)
-- check
assert(self)
@@ -122,7 +122,7 @@ function deprecated_interpreter.api_register_set_script(self, scope_kind, prefix
utils.warning("please uses on_%s(), \"set_%s()\" has been deprecated!", name, name, scope)
-- make sandbox instance with the given script
- local instance, errors = sandbox.make(script, self)
+ local instance, errors = sandbox.new(script, self)
if not instance then
os.raise("set_%s(): %s", name, errors)
end