Clean up macros (#14959)

This commit is contained in:
Juan Carlos 2020-07-14 11:44:56 -03:00 • committed by GitHub
commit 9465b5db44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 43 deletions

View file

@ -678,7 +678,7 @@ macro check*(conditions: untyped): untyped =
result = newNimNode(nnkStmtList)
for node in checked:
if node.kind != nnkCommentStmt:
result.add(newCall(!"check", node))
result.add(newCall(newIdentNode("check"), node))
else:
let lineinfo = newStrLitNode(checked.lineInfo)