diff options
| author | ruki <[email protected]> | 2025-11-02 23:33:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-07 15:01:56 +0800 |
| commit | ec6e12c9f2fd8533d06e177ddc0a6dcf3e127757 (patch) | |
| tree | 3051e972ea306e81c36ae2d1d07069b61f5cc080 /xmake/core/base/utils.lua | |
| parent | 0fec3c1ff95f37cdfa6f09dc8e5d7efd8128c133 (diff) | |
do async task in os.rm
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index d20b3c774..ac9884851 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -193,6 +193,20 @@ function utils.vprintf(format, ...) end end +-- print the diagnosis information +function utils.dprint(format, ...) + if option.get("diagnosis") and format ~= nil then + utils.print(format, ...) + end +end + +-- print the diagnosis information without newline +function utils.dprintf(format, ...) + if option.get("diagnosis") and format ~= nil then + utils.printf(format, ...) + end +end + -- print the error information function utils.error(format, ...) if format ~= nil then |
