diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-06-18 08:57:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 08:57:51 -0700 |
commit | 5600a622297a9b06b2f47039e0397cded1bd425c (patch) | |
tree | 99301aef019d3962f605bbad142f496f6b02f2ec /lib/core | |
parent | 87cd9b24a3df66dcde96bbdec2bd7620015ddeba (diff) | |
download | Nim-5600a622297a9b06b2f47039e0397cded1bd425c.tar.gz |
strformat.fmt now supports non-literal const strings (#18274)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 37f855d94..c09fae6b3 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -476,8 +476,9 @@ proc genSym*(kind: NimSymKind = nskLet; ident = ""): NimNode {. ## needs to occur in a declaration context. proc callsite*(): NimNode {.magic: "NCallSite", benign, deprecated: - "Deprecated since v0.18.1; use varargs[untyped] in the macro prototype instead".} + "Deprecated since v0.18.1; use `varargs[untyped]` in the macro prototype instead".} ## Returns the AST of the invocation expression that invoked this macro. + # see https://github.com/nim-lang/RFCs/issues/387 as candidate replacement. proc toStrLit*(n: NimNode): NimNode = ## Converts the AST `n` to the concrete Nim code and wraps that |