Implement isExported for symbols in macros (#11963)
* Implement isExported for macros * Reimplement isExported using VM callback mechanism * VM does not support exceptions, use stacktrace() instead.
This commit is contained in:
parent
7cb31455ee
commit
d5840e1e3d
3 changed files with 23 additions and 1 deletions
|
|
@ -1611,3 +1611,6 @@ when defined(nimMacrosSizealignof):
|
|||
## from a field of a type. Therefore it only requires one argument
|
||||
## instead of two. Returns a negative value if the Nim compiler
|
||||
## does not know the offset.
|
||||
|
||||
proc isExported*(n: NimNode): bool {.noSideEffect.} =
|
||||
## Returns whether the symbol is exported or not.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue