diff options
| author | ruki <[email protected]> | 2016-03-22 20:24:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-22 20:24:31 +0800 |
| commit | aca0257d26134ff95889acb419d49701fee4ec61 (patch) | |
| tree | c1a2f332156aba8295b0522fa70f08783e9633c6 /xmake/core/sandbox/modules/utils.lua | |
| parent | c1460e5be7f4b4e3356a8bda99703828c356cbfb (diff) | |
impl lua action
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index f0cb95db9..395642268 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -21,6 +21,7 @@ -- -- load modules +local io = require("base/io") local utils = require("base/utils") local vformat = require("sandbox/modules/vformat") @@ -34,11 +35,18 @@ for k, v in pairs(utils) do end end +-- print with the builtin variables and newline +function sandbox_utils.print(format, ...) + + -- done + return io.write(vformat(format, ...) .. "\n") +end + -- printf with the builtin variables function sandbox_utils.printf(format, ...) -- done - return print(vformat(format, ...)) + return io.write(vformat(format, ...)) end -- return module |
