'assert' is now implemented without compiler magic
This commit is contained in:
parent
728328eec2
commit
70cf34cbdc
16 changed files with 66 additions and 24 deletions
|
|
@ -117,7 +117,7 @@ proc getParser(ident: PIdent): TParserKind =
|
|||
rawMessage(errInvalidDirectiveX, ident.s)
|
||||
|
||||
proc getCallee(n: PNode): PIdent =
|
||||
if (n.kind == nkCall) and (n.sons[0].kind == nkIdent):
|
||||
if n.kind in nkCallKinds and n.sons[0].kind == nkIdent:
|
||||
result = n.sons[0].ident
|
||||
elif n.kind == nkIdent:
|
||||
result = n.ident
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue