mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
* Implement isExported for macros * Reimplement isExported using VM callback mechanism * VM does not support exceptions, use stacktrace() instead.
11 lines
172 B
Nim
11 lines
172 B
Nim
import macros
|
|
|
|
proc t1* = discard
|
|
proc t2 = discard
|
|
|
|
macro check(p1: typed, p2: typed) =
|
|
doAssert isExported(p1) == true
|
|
doAssert isExported(p2) == false
|
|
|
|
check t1, t2
|