alternative to #22183; nimscript shares the same compileTime sym with VM (#22184)

This commit is contained in:
ringabout
2023-06-29 17:21:22 +08:00
committed by GitHub
parent d139d99946
commit 41ec894cb0
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
discard """
cmd: "nim e $file"
"""
import mscriptcompiletime
macro foo =
doAssert bar == 2
foo()