Help with a template

2024-01-29 Thread dwhall256
Done.

Help with a template

2024-01-28 Thread Araq
This works: template declareFoo(fooName: untyped, v: uint) = const `fooName Value`* {.inject.} = v declareFoo(FOO, 0x7000'u32) declareFoo(BAR, 0x8000'u32) echo FOOValue Run But report it on github please, I'm not entirely sure what is

Help with a template

2024-01-28 Thread dwhall256
I've created a template and I'm getting an error from the compiler that I can't understand how to remedy. template declareFoo(fooName: untyped, value: uint) = const `fooName Value`* = value declareFoo(FOO, 0x7000) declareFoo(BAR, 0x8000) Run