add static to the type
    
    
    import macros
    
    macro initNui(a: static[int]): typed =
      result = parseStmt("const b = " & $a)
    
    initNui 1
    

Reply via email to