about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-02-05 16:27:51 +0100
committerbptato <nincsnevem662@gmail.com>2023-02-05 16:27:51 +0100
commit94af53f45cc9ed041ff82db40ee1ca8e9ec1366a (patch)
treeb6f08c219115014a848d2f3abac0dbf07bae50bd /src/utils
parent6190ae1071c8d07a9a2d10037801838718363e1f (diff)
downloadchawan-94af53f45cc9ed041ff82db40ee1ca8e9ec1366a.tar.gz
eprint: make it a function
This makes the compiler complain less.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/eprint.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/eprint.nim b/src/utils/eprint.nim
index 6692ccf5..1564142e 100644
--- a/src/utils/eprint.nim
+++ b/src/utils/eprint.nim
@@ -1,6 +1,6 @@
 {.used.}
 
-template eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect), cast(tags: []), cast(raises: []).}:
+func eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect), cast(tags: []), cast(raises: []).}:
   var a = false
   var o = ""
   when nimVm: