diff options
Diffstat (limited to 'src/utils/eprint.nim')
-rw-r--r-- | src/utils/eprint.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/utils/eprint.nim b/src/utils/eprint.nim index c5936d2a..6692ccf5 100644 --- a/src/utils/eprint.nim +++ b/src/utils/eprint.nim @@ -2,8 +2,8 @@ template eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect), cast(tags: []), cast(raises: []).}: var a = false + var o = "" when nimVm: - var o = "" for x in s: if not a: a = true @@ -16,6 +16,7 @@ template eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect), cast(tags: []) if not a: a = true else: - stderr.write(' ') - stderr.write(x) - stderr.write('\n') + o &= ' ' + o &= x + o &= '\n' + stderr.write(o) |