about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-11-12 16:55:53 +0100
committerbptato <nincsnevem662@gmail.com>2021-11-12 16:55:53 +0100
commit7108754641cefb3f01af8e29aae11695d94e980c (patch)
treec191a33745da13d31131fa8186bcfbe58ff69488 /src/utils
parentfcd3a5b204e15fdfc739fd04975977d288e892e0 (diff)
downloadchawan-7108754641cefb3f01af8e29aae11695d94e980c.tar.gz
Colors, italic, bold, read from pipe
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/eprint.nim36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/utils/eprint.nim b/src/utils/eprint.nim
index eba5f51f..d13fcf91 100644
--- a/src/utils/eprint.nim
+++ b/src/utils/eprint.nim
@@ -1,27 +1,25 @@
 {.used.}
 
 template eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect).}:
-  if not defined(release):
-    var a = false
-    for x in s:
-      if not a:
-        a = true
-      else:
-        stderr.write(' ')
-      stderr.write(x)
-    stderr.write('\n')
+  var a = false
+  for x in s:
+    if not a:
+      a = true
+    else:
+      stderr.write(' ')
+    stderr.write(x)
+  stderr.write('\n')
 
 template eecho*(s: varargs[string, `$`]) = {.cast(noSideEffect).}:
-  if not defined(release):
-    var a = false
-    var o = ""
-    for x in s:
-      if not a:
-        a = true
-      else:
-        o &= ' '
-      o &= x
-    echo o
+  var a = false
+  var o = ""
+  for x in s:
+    if not a:
+      a = true
+    else:
+      o &= ' '
+    o &= x
+  echo o
 
 template print*(s: varargs[string, `$`]) =
   for x in s: