Merge pull request #11753 from kaushalmodi/fix-compilation-warning-in-macros

[bugfix] Fix compilation warning in macros.nim
This commit is contained in:
Andreas Rumpf 2019-07-17 15:17:45 +02:00 • committed by GitHub
commit bae08d0961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1420,7 +1420,7 @@ proc boolVal*(n: NimNode): bool {.compileTime, noSideEffect.} =
if n.kind == nnkIntLit: n.intVal != 0 if n.kind == nnkIntLit: n.intVal != 0
else: n == bindSym"true" # hacky solution for now else: n == bindSym"true" # hacky solution for now
macro expandMacros*(body: typed): typed = macro expandMacros*(body: typed): untyped =
## Expands one level of macro - useful for debugging. ## Expands one level of macro - useful for debugging.
## Can be used to inspect what happens when a macro call is expanded, ## Can be used to inspect what happens when a macro call is expanded,
## without altering its result. ## without altering its result.