summaryrefslogtreecommitdiff
path: root/src/printer/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer/printer.cpp')
-rw-r--r--src/printer/printer.cpp7
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) */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback