try this:
    
    
    import macros
    
    ... # your code here
    
    macro test(n: typed): untyped =
      let x = getImpl(n.symbol)
      echo x.treeRepr
      ... # do whatever you like with the x
    
    test(testProc)
    

Reply via email to