summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-08-28 22:59:28 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-28 22:59:28 +0200
commit5cd152bfda29adefc8ba6eb72117c91dbc2e9d7f (patch)
tree575cb757fbd4b17a19ecee8af69afc5c26c73ade /lib/core
parent6e83746caabca00ab2b97a81bd732de4588996fe (diff)
downloadNim-5cd152bfda29adefc8ba6eb72117c91dbc2e9d7f.tar.gz
Allow `hint` and `warning` to specify its loc info (#8771)
Let's bring those to feature-parity with `error`.
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index bac9ce7a2..5b29d5e94 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -336,10 +336,10 @@ proc copyNimTree*(n: NimNode): NimNode {.magic: "NCopyNimTree", noSideEffect.}
 proc error*(msg: string, n: NimNode = nil) {.magic: "NError", benign.}
   ## writes an error message at compile time
 
-proc warning*(msg: string) {.magic: "NWarning", benign.}
+proc warning*(msg: string, n: NimNode = nil) {.magic: "NWarning", benign.}
   ## writes a warning message at compile time
 
-proc hint*(msg: string) {.magic: "NHint", benign.}
+proc hint*(msg: string, n: NimNode = nil) {.magic: "NHint", benign.}
   ## writes a hint message at compile time
 
 proc newStrLitNode*(s: string): NimNode {.compileTime, noSideEffect.} =