stdlib work

This commit is contained in:
Zahary Karadjov
2018-06-09 11:52:03 +03:00
parent ee16e62061
commit 7ab1aafc6b
3 changed files with 66 additions and 9 deletions

View File

@@ -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