stdlib work
This commit is contained in:
parent
ee16e62061
commit
7ab1aafc6b
3 changed files with 66 additions and 9 deletions
|
|
@ -182,7 +182,7 @@ template checkOsError =
|
|||
if err.len > 0: raise newException(OSError, err)
|
||||
|
||||
template log(msg: string, body: untyped) =
|
||||
if mode == ScriptMode.Verbose or mode == ScriptMode.Whatif:
|
||||
if mode in {ScriptMode.Verbose, ScriptMode.Whatif}:
|
||||
echo "[NimScript] ", msg
|
||||
if mode != ScriptMode.WhatIf:
|
||||
body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue