diff options
Diffstat (limited to 'src/printer/printer.cpp')
-rw-r--r-- | src/printer/printer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp index d4b99536e..a2734160f 100644 --- a/src/printer/printer.cpp +++ b/src/printer/printer.cpp @@ -71,7 +71,12 @@ Printer* Printer::makePrinter(OutputLanguage lang) throw() { void Printer::toStream(std::ostream& out, const Model& m) const throw() { for(size_t i = 0; i < m.getNumCommands(); ++i) { - toStream(out, m, m.getCommand(i)); + const Command* cmd = m.getCommand(i); + const DeclareFunctionCommand* dfc = dynamic_cast<const DeclareFunctionCommand*>(cmd); + if (dfc != NULL && m.isDontCare(dfc->getFunction())) { + continue; + } + toStream(out, m, cmd); } }/* Printer::toStream(Model) */ |