]> Creatis software - clitk.git/blob - cmake/gengetopt/skels/exit_failure.cc
Adapt CMakeLists to include it from other projects
[clitk.git] / cmake / gengetopt / skels / exit_failure.cc
1 /*
2  * File automatically generated by
3  * gengen 1.4.1 by Lorenzo Bettini 
4  * http://www.gnu.org/software/gengen
5  */
6
7 #include "exit_failure.h"
8
9 void
10 exit_failure_gen_class::generate_exit_failure(ostream &stream, unsigned int indent)
11 {
12   string indent_str (indent, ' ');
13   indent = 0;
14
15   if (handle_error)
16     {
17       stream << "if (result == EXIT_FAILURE)";
18       stream << "\n";
19       stream << indent_str;
20       stream << "  {";
21       stream << "\n";
22       stream << indent_str;
23       indent = 4;
24       stream << "    ";
25       generate_string (parser_name, stream, indent + indent_str.length ());
26       stream << "_free (args_info);";
27       indent = 0;
28       stream << "\n";
29       stream << indent_str;
30       stream << "    exit (EXIT_FAILURE);";
31       stream << "\n";
32       stream << indent_str;
33       stream << "  }";
34       stream << "\n";
35       stream << indent_str;
36       stream << "\n";
37       stream << indent_str;
38     }
39   stream << "return result;";
40 }