diff options
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r-- | lib/core/macros.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 3fe53f6f5..4e44b9b4f 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -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. |