or you can use intVal, strVal, etc on literal nodes
import macros
macro initNui(a:int): typed =
result = parseStmt("const b=" & $a.intVal)
initNui(1)
- How to get string representation of int inside of the macros? r3d9u11
- Re: How to get string representation of int inside of the ... mashingan
- Re: How to get string representation of int inside of ... r3d9u11
- Re: How to get string representation of int inside... jangko
