]> Creatis software - clitk.git/blobdiff - utilities/gengetopt/ggo_options.h
Sync gengetopt cmake files with rtk
[clitk.git] / utilities / gengetopt / ggo_options.h
diff --git a/utilities/gengetopt/ggo_options.h b/utilities/gengetopt/ggo_options.h
new file mode 100644 (file)
index 0000000..f3b218e
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef GGO_OPTIONS_H
+#define GGO_OPTIONS_H
+
+#include "ggos.h"
+
+extern gengetopt_option_list gengetopt_options;
+
+#define foropt for (gengetopt_option_list::iterator it = gengetopt_options.begin();             \
+                    it != gengetopt_options.end() && (opt = *it); \
+                    ++it)
+
+#endif /* GGO_OPTIONS_H */