diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-26 03:06:17 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-26 13:49:22 -0300 |
commit | f190bafc8a82b73c08d25c07ff08a8eb00eca2d7 (patch) | |
tree | bf797304b7d58659c2874735f4f065cb67a6467a /main.cpp | |
parent | f8fba84d7b0230b1f48109c339197c407757bea1 (diff) |
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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |