diff options
Diffstat (limited to 'Tests/BuildDepends/Project/generator.cxx')
-rw-r--r-- | Tests/BuildDepends/Project/generator.cxx | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Tests/BuildDepends/Project/generator.cxx b/Tests/BuildDepends/Project/generator.cxx index 92a122d..5a83a7f 100644 --- a/Tests/BuildDepends/Project/generator.cxx +++ b/Tests/BuildDepends/Project/generator.cxx @@ -4,21 +4,16 @@ extern const char* foo(); int main(int argc, const char* argv[]) { - if(argc < 3) - { + if (argc < 3) { fprintf(stderr, "Must specify output file and symbol prefix!"); return 1; - } - if(FILE* fout = fopen(argv[1], "w")) - { - fprintf(fout, "static const char* %s_string = \"%s\";\n", argv[2], - foo()); + } + if (FILE* fout = fopen(argv[1], "w")) { + fprintf(fout, "static const char* %s_string = \"%s\";\n", argv[2], foo()); fclose(fout); - } - else - { + } else { fprintf(stderr, "Could not open output file \"%s\"", argv[1]); return 1; - } + } return 0; } |