summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-26 03:06:17 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-26 13:49:22 -0300
commitf190bafc8a82b73c08d25c07ff08a8eb00eca2d7 (patch)
treebf797304b7d58659c2874735f4f065cb67a6467a /main.cpp
parentf8fba84d7b0230b1f48109c339197c407757bea1 (diff)
downloadgeneratorrunner-f190bafc8a82b73c08d25c07ff08a8eb00eca2d7.tar.gz
generatorrunner-f190bafc8a82b73c08d25c07ff08a8eb00eca2d7.tar.xz
generatorrunner-f190bafc8a82b73c08d25c07ff08a8eb00eca2d7.zip
the generator runner exits with an error code if the call to
ApiExtractor.run() returns false Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index f419bab..1f6f76a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -184,7 +184,8 @@ int main(int argc, char *argv[])
}
extractor.setCppFileName(cppFileName);
extractor.setTypeSystem(typeSystemFileName);
- extractor.run();
+ if (!extractor.run())
+ return EXIT_FAILURE;
if (!extractor.classCount()) {
std::cerr << "No C++ classes found!" << std::endl;