parent
b08c50bb55
commit
f7c203fb6c
27 changed files with 432 additions and 1032 deletions
|
|
@ -1519,11 +1519,10 @@ proc boolVal*(n: NimNode): bool {.noSideEffect.} =
|
|||
if n.kind == nnkIntLit: n.intVal != 0
|
||||
else: n == bindSym"true" # hacky solution for now
|
||||
|
||||
when defined(nimMacrosGetNodeId):
|
||||
proc nodeID*(n: NimNode): int {.magic: "NodeId".}
|
||||
## Returns the id of `n`, when the compiler has been compiled
|
||||
## with the flag `-d:useNodeids`, otherwise returns `-1`. This
|
||||
## proc is for the purpose to debug the compiler only.
|
||||
proc nodeID*(n: NimNode): int {.magic: "NodeId".}
|
||||
## Returns the id of `n`, when the compiler has been compiled
|
||||
## with the flag `-d:useNodeids`, otherwise returns `-1`. This
|
||||
## proc is for the purpose to debug the compiler only.
|
||||
|
||||
macro expandMacros*(body: typed): untyped =
|
||||
## Expands one level of macro - useful for debugging.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue