distinguish between 'defined' and 'declared'
This commit is contained in:
parent
b1c8461a3b
commit
dd806cafa0
36 changed files with 155 additions and 96 deletions
|
|
@ -1,5 +1,5 @@
|
|||
template tests*(body: stmt) {.immediate.} =
|
||||
when defined(selftest):
|
||||
when not defined(unittest): import unittest
|
||||
when not declared(unittest): import unittest
|
||||
body
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue