summaryrefslogtreecommitdiff
path: root/python/generator.cpp
diff options
context:
space:
mode:
authorJon Palmisciano <jp@jonpalmisc.com>2023-02-12 18:39:57 -0500
committerJon Palmisciano <jp@jonpalmisc.com>2023-02-12 18:39:57 -0500
commit17daee849c666ffa5535c158754d53ab37bf763f (patch)
treeaa2c6bda60e9f7ae705905dd674249880f1f0e21 /python/generator.cpp
parent49591fd3e0cd37c8c829b792ead7182797f10e73 (diff)
Slightly clean up CMake output
Diffstat (limited to 'python/generator.cpp')
-rw-r--r--python/generator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/generator.cpp b/python/generator.cpp
index a26334e5..9f5e24eb 100644
--- a/python/generator.cpp
+++ b/python/generator.cpp
@@ -245,9 +245,10 @@ int main(int argc, char* argv[])
Settings::Instance()->Set("analysis.types.parserName", "ClangTypeParser");
bool ok = arch->GetStandalonePlatform()->ParseTypesFromSourceFile(argv[1], types, vars, funcs, errors);
- fprintf(stderr, "Errors: %s\n", errors.c_str());
- if (!ok)
+ if (!ok) {
+ fprintf(stderr, "Errors: %s\n", errors.c_str());
return 1;
+ }
FILE* out = fopen(argv[2], "w");
FILE* enums = fopen(argv[3], "w");