Documented error source argument of macros.error() (#10279)
This commit is contained in:
parent
647066e378
commit
7e7603ed2b
1 changed files with 3 additions and 1 deletions
|
|
@ -377,7 +377,9 @@ proc copyNimNode*(n: NimNode): NimNode {.magic: "NCopyNimNode", noSideEffect.}
|
||||||
proc copyNimTree*(n: NimNode): NimNode {.magic: "NCopyNimTree", noSideEffect.}
|
proc copyNimTree*(n: NimNode): NimNode {.magic: "NCopyNimTree", noSideEffect.}
|
||||||
|
|
||||||
proc error*(msg: string, n: NimNode = nil) {.magic: "NError", benign.}
|
proc error*(msg: string, n: NimNode = nil) {.magic: "NError", benign.}
|
||||||
## writes an error message at compile time
|
## writes an error message at compile time. The optional ``n: NimNode``
|
||||||
|
## parameter is used as the source for file and line number information in
|
||||||
|
## the compilation error message.
|
||||||
|
|
||||||
proc warning*(msg: string, n: NimNode = nil) {.magic: "NWarning", benign.}
|
proc warning*(msg: string, n: NimNode = nil) {.magic: "NWarning", benign.}
|
||||||
## writes a warning message at compile time
|
## writes a warning message at compile time
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue