X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fbash%2FConfig.h.in;h=953661b2238f24507c35357cc07204bc6f2161f4;hb=db0a767418f78b371c1e4fb0db00e6b75df74ff3;hp=f8917947a2e10a41bffd85d9614eeb6274c97edd;hpb=49d2d7db538d60008b9a5701ea8f26bb19997a82;p=cpPlugins.git diff --git a/appli/bash/Config.h.in b/appli/bash/Config.h.in index f891794..953661b 100644 --- a/appli/bash/Config.h.in +++ b/appli/bash/Config.h.in @@ -13,6 +13,7 @@ #include // ------------------------------------------------------------------------- +#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#" + ) ); }