deprecate macros.callsite; fixes #7369
This commit is contained in:
parent
ea8afebf8c
commit
19a1cc914f
2 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
### Changes affecting backwards compatibility
|
### Changes affecting backwards compatibility
|
||||||
|
|
||||||
- The stdlib module ``future`` has been renamed to ``sugar``.
|
- The stdlib module ``future`` has been renamed to ``sugar``.
|
||||||
|
- ``macros.callsite`` is now deprecated. Since the introduction of ``varargs``
|
||||||
|
parameters this became unnecessary.
|
||||||
|
|
||||||
#### Breaking changes in the standard library
|
#### Breaking changes in the standard library
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -361,8 +361,10 @@ proc genSym*(kind: NimSymKind = nskLet; ident = ""): NimNode {.
|
||||||
## generates a fresh symbol that is guaranteed to be unique. The symbol
|
## generates a fresh symbol that is guaranteed to be unique. The symbol
|
||||||
## needs to occur in a declaration context.
|
## needs to occur in a declaration context.
|
||||||
|
|
||||||
proc callsite*(): NimNode {.magic: "NCallSite", benign.}
|
proc callsite*(): NimNode {.magic: "NCallSite", benign,
|
||||||
|
deprecated: "use varargs[untyped] in the macro prototype instead".}
|
||||||
## returns the AST of the invocation expression that invoked this macro.
|
## returns the AST of the invocation expression that invoked this macro.
|
||||||
|
## **Deprecated since version 0.18.1**.
|
||||||
|
|
||||||
proc toStrLit*(n: NimNode): NimNode {.compileTime.} =
|
proc toStrLit*(n: NimNode): NimNode {.compileTime.} =
|
||||||
## converts the AST `n` to the concrete Nim code and wraps that
|
## converts the AST `n` to the concrete Nim code and wraps that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue