diff gen/functions.cpp @ 163:a8cd9bc1021a trunk

[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author lindquist
date Mon, 05 May 2008 07:36:29 +0200
parents 1856c62af24b
children db9890b3fb64
line wrap: on
line diff
--- a/gen/functions.cpp	Mon May 05 00:56:53 2008 +0200
+++ b/gen/functions.cpp	Mon May 05 07:36:29 2008 +0200
@@ -384,11 +384,11 @@
     }
 
     // static ctor
-    if (fdecl->isStaticCtorDeclaration()) {
+    if (fdecl->isStaticCtorDeclaration() && fdecl->getModule() == gIR->dmodule) {
         gIR->ctors.push_back(fdecl);
     }
     // static dtor
-    else if (fdecl->isStaticDtorDeclaration()) {
+    else if (fdecl->isStaticDtorDeclaration() && fdecl->getModule() == gIR->dmodule) {
         gIR->dtors.push_back(fdecl);
     }