Implement custom annotations (#6987)
This commit is contained in:
parent
aff787db69
commit
2c9e56a783
10 changed files with 254 additions and 42 deletions
5
tests/pragmas/custom_pragma.nim
Normal file
5
tests/pragmas/custom_pragma.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# imported by tcustom_pragmas to test scoping
|
||||
|
||||
template serializationKey*(s: string) {.pragma.}
|
||||
template defaultValue*(V: typed) {.pragma.}
|
||||
template alternativeKey*(s: string = nil, V: typed) {.pragma.}
|
||||
Loading…
Add table
Add a link
Reference in a new issue