]> Creatis software - cpPlugins.git/blobdiff - appli/bash/Config.h.in
...
[cpPlugins.git] / appli / bash / Config.h.in
index f8917947a2e10a41bffd85d9614eeb6274c97edd..953661b2238f24507c35357cc07204bc6f2161f4 100644 (file)
@@ -13,6 +13,7 @@
 #include <string>
 
 // -------------------------------------------------------------------------
+#define cpPlugins_CONFIG_BOOLEAN_TYPES      "@cpPlugins_CONFIG_BOOLEAN_TYPES@"
 #define cpPlugins_CONFIG_INTEGER_TYPES      "@cpPlugins_CONFIG_INTEGER_TYPES@"
 #define cpPlugins_CONFIG_REAL_TYPES         "@cpPlugins_CONFIG_REAL_TYPES@"
 #define cpPlugins_CONFIG_PROCESS_DIMENSIONS "@cpPlugins_CONFIG_PROCESS_DIMENSIONS@"
@@ -131,6 +132,10 @@ namespace cpPlugins_bash
   // -----------------------------------------------------------------------
   inline void LoadDefinitions( TCommands& commands )
   {
+    commands[ "define" ].push_back(
+      std::string( "bool_types=" ) +
+      std::string( cpPlugins_CONFIG_BOOLEAN_TYPES )
+      );
     commands[ "define" ].push_back(
       std::string( "int_types=" ) +
       std::string( cpPlugins_CONFIG_INTEGER_TYPES )
@@ -163,11 +168,14 @@ namespace cpPlugins_bash
       std::string( "matrices=" ) +
       std::string( cpPlugins_CONFIG_MATRICES )
       );
+    if( std::string( cpPlugins_CONFIG_INTEGER_TYPES ) != "" )
+      commands[ "define" ].push_back(
+        std::string( "uint_types=unsigned #int_types#" )
+        );
     commands[ "define" ].push_back(
-      std::string( "uint_types=unsigned #int_types#" )
-      );
-    commands[ "define" ].push_back(
-      std::string( "scalar_pixels=#int_types#;#uint_types#;#real_types#" )
+      std::string(
+        "scalar_pixels=#bool_types#;#int_types#;#uint_types#;#real_types#"
+        )
       );
   }