diff options
Diffstat (limited to 'rod/c2nim/cpp.nim')
-rwxr-xr-x | rod/c2nim/cpp.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rod/c2nim/cpp.nim b/rod/c2nim/cpp.nim index 46f78602b..860b1c063 100755 --- a/rod/c2nim/cpp.nim +++ b/rod/c2nim/cpp.nim @@ -40,7 +40,7 @@ proc parseDefine(p: var TParser): PNode = # a macro with parameters: result = newNodeP(nkTemplateDef, p) getTok(p) - addSon(result, skipIdent(p)) + addSon(result, skipIdentExport(p)) eat(p, pxParLe) var params = newNodeP(nkFormalParams, p) # return type; not known yet: @@ -68,7 +68,7 @@ proc parseDefine(p: var TParser): PNode = while p.tok.xkind == pxDirective and p.tok.s == "define": getTok(p) # skip #define var c = newNodeP(nkConstDef, p) - addSon(c, skipIdent(p)) + addSon(c, skipIdentExport(p)) addSon(c, nil) skipStarCom(p, c) if p.tok.xkind in {pxLineComment, pxNewLine, pxEof}: |