summary refs log tree commit diff stats
path: root/rod/expandimportc.nim
diff options
context:
space:
mode:
authorrumpf_a@web.de <>2009-12-20 12:43:28 +0100
committerrumpf_a@web.de <>2009-12-20 12:43:28 +0100
commitf56816def07cf88f7ed3905eeba02f19fc0a4b9c (patch)
treeb057be62c7a4abbff0d0ff6a19251b87ce383001 /rod/expandimportc.nim
parent8ce705f6860169b6b0c6db94db38ba25f4f1965f (diff)
downloadNim-f56816def07cf88f7ed3905eeba02f19fc0a4b9c.tar.gz
got rid of platdef.c; compiler now always does linking step
Diffstat (limited to 'rod/expandimportc.nim')
-rwxr-xr-xrod/expandimportc.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/rod/expandimportc.nim b/rod/expandimportc.nim
index 82a0578ac..9613626f1 100755
--- a/rod/expandimportc.nim
+++ b/rod/expandimportc.nim
@@ -14,6 +14,7 @@ import
   os, ropes, idents, ast, pnimsyn, rnimsyn, msgs, wordrecg, syntaxes
 
 proc modifyPragmas(n: PNode, name: string) =
+  if n == nil: return
   for i in countup(0, sonsLen(n) - 1): 
     var it = n.sons[i]
     if it.kind == nkIdent and whichKeyword(it.ident) == wImportc: