This works:
    
    
    template declareFoo(fooName: untyped, v: uint) =
      const `fooName Value`* {.inject.} = v
    
    declareFoo(FOO, 0x70000000'u32)
    declareFoo(BAR, 0x80000000'u32)
    
    echo FOOValue
    
    
    Run

But report it on github please, I'm not entirely sure what is going on.

Reply via email to