diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-07-12 19:33:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-12 13:33:54 +0200 |
commit | 570deb10d33da581f1dc61c189ab04ed6c6d470f (patch) | |
tree | 36bb39f6db73cd8133fac58954fbc9cde36c8435 /lib/core/macros.nim | |
parent | 22ba5abd635a1b50c76acb0b80097a663cdf97c9 (diff) | |
download | Nim-570deb10d33da581f1dc61c189ab04ed6c6d470f.tar.gz |
deprecate `owner` from `std/macros` (#23828)
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r-- | lib/core/macros.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index bd1de9cd7..d391bf761 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -277,7 +277,7 @@ when (NimMajor, NimMinor, NimPatch) >= (1, 3, 5) or defined(nimSymImplTransform) ## note that code transformations are implementation dependent and subject to change. ## See an example in `tests/macros/tmacros_various.nim`. -proc owner*(sym: NimNode): NimNode {.magic: "SymOwner", noSideEffect.} +proc owner*(sym: NimNode): NimNode {.magic: "SymOwner", noSideEffect, deprecated.} ## Accepts a node of kind `nnkSym` and returns its owner's symbol. ## The meaning of 'owner' depends on `sym`'s `NimSymKind` and declaration ## context. For top level declarations this is an `nskModule` symbol, |