Re: callsite()

2018-04-26 Thread Araq
macro styledEchoPrint*(m: varargs[untyped]): typed = ## partially lifted from an earler macro in terminal.nim and removed new line result = newNimNode(nnkStmtList) for i in countup(0, m.len - 1): result.add(newCall(bindSym"styledEchoProcessArg", m[i])) result.add(newCall(bindSym"write",

callsite()

2018-04-26 Thread qqtop
I see warnings that callsite() is being deprecated. I use this macro and would like to know how to rewrite it without using callsite() to achieve the same effect. macro styledEchoPrint*(m: varargs[untyped]): typed = ## partially lifted from an earler macro in terminal.nim