Mercurial > projects > ldc
comparison gen/functions.cpp @ 1149:5ebe8224988b
Fixed problems introduced by previous commits that prevented Tango from compiling.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 23:17:04 +0100 |
parents | 3d1b16dabd25 |
children | 3cf0066e6faf |
comparison
equal
deleted
inserted
replaced
1148:3d1b16dabd25 | 1149:5ebe8224988b |
---|---|
299 void DtoResolveFunction(FuncDeclaration* fdecl) | 299 void DtoResolveFunction(FuncDeclaration* fdecl) |
300 { | 300 { |
301 if (!global.params.useUnitTests && fdecl->isUnitTestDeclaration()) { | 301 if (!global.params.useUnitTests && fdecl->isUnitTestDeclaration()) { |
302 Logger::println("Ignoring unittest %s", fdecl->toPrettyChars()); | 302 Logger::println("Ignoring unittest %s", fdecl->toPrettyChars()); |
303 return; // ignore declaration completely | 303 return; // ignore declaration completely |
304 } | |
305 | |
306 // is imported and we don't have access? | |
307 if (fdecl->getModule() != gIR->dmodule) | |
308 { | |
309 if (fdecl->prot() == PROTprivate) | |
310 { | |
311 Logger::println("Ignoring private imported function %s", fdecl->toPrettyChars()); | |
312 return; | |
313 } | |
314 } | 304 } |
315 | 305 |
316 //printf("resolve function: %s\n", fdecl->toPrettyChars()); | 306 //printf("resolve function: %s\n", fdecl->toPrettyChars()); |
317 | 307 |
318 if (fdecl->parent) | 308 if (fdecl->parent) |