#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@"
// -----------------------------------------------------------------------
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 )
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#"
+ )
);
}