summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-09-29 21:43:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-09-29 21:43:07 +0100
commit4c7e22d76dfd0d75d580d14b216ddb06a9630b22 (patch)
tree1d61d7ed4e0ceb37d6dd090720fd0f527c7c1b3e
parentDon't attempt to get metadata of class we don't have a definition for (diff)
downloadslicer-4c7e22d76dfd0d75d580d14b216ddb06a9630b22.tar.bz2
slicer-4c7e22d76dfd0d75d580d14b216ddb06a9630b22.tar.xz
slicer-4c7e22d76dfd0d75d580d14b216ddb06a9630b22.zip
Return the number of components processed this run, not the lifetime total
-rw-r--r--slicer/tool/parser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index c541ec1..2642292 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -622,11 +622,13 @@ namespace Slicer {
throw CompilerError("unit parse failed");
}
+ unsigned int initial = Components();
+
u->visit(this, false);
u->destroy();
- return Components();
+ return Components() - initial;
}
Slicer::ConversionSpec::ConversionSpec(const Slicer::Args & s) :