diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-16 05:21:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 14:21:26 +0200 |
commit | d19e4310dc16cae2329c55dfa8feb94e0981dc0c (patch) | |
tree | 0fd3df253460a37aef246621538e50c351a5a0f3 /testament | |
parent | 611b88763f8ec88889b14da31ff220cb47789846 (diff) | |
download | Nim-d19e4310dc16cae2329c55dfa8feb94e0981dc0c.tar.gz |
std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)
Diffstat (limited to 'testament')
-rw-r--r-- | testament/lib/stdtest/testutils.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testament/lib/stdtest/testutils.nim b/testament/lib/stdtest/testutils.nim index abffff24c..35423de17 100644 --- a/testament/lib/stdtest/testutils.nim +++ b/testament/lib/stdtest/testutils.nim @@ -85,3 +85,7 @@ template accept*(a) = template reject*(a) = doAssert not compiles(a) + +template disableVm*(body) = + when nimvm: discard + else: body |