summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-01 18:34:59 +0800
committerruki <[email protected]>2016-02-15 19:10:26 +0800
commit0faab8456bcc516a5e09f7cf3647dd9625cbb616 (patch)
tree5e3d21ece8d185ac3e166bf0edd1154e960f6d0b /xmake/core/base
parentd986b3ac89b3054e256dea9520a6e07ba6ddb5d1 (diff)
add string and utils interfaces for sandbox
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/interpreter.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 3ee1165a2..302424711 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -446,6 +446,7 @@ function interpreter.init()
self:api_register_builtin("print", print)
self:api_register_builtin("pairs", pairs)
self:api_register_builtin("ipairs", ipairs)
+ self:api_register_builtin("printf", utils.printf)
-- register the builtin modules for lua
self:api_register_builtin("path", path)