This commit is contained in:
parent
fcd2f305ad
commit
4cd86c0842
4 changed files with 60 additions and 4 deletions
|
|
@ -50,5 +50,7 @@ else:
|
|||
{.pragma: benign, gcsafe.}
|
||||
|
||||
template since(version, body: untyped) {.dirty.} =
|
||||
## limitation: can't be used to annotate a template (eg typetraits.get), would
|
||||
## error: cannot attach a custom pragma.
|
||||
when version <= (NimMajor, NimMinor):
|
||||
body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue