From: Wheeler, Fred (Research) <wheeler@cr...> - 2002-08-30 19:26:04
> Since this is just for display purposes, one solution is to have a
> define for only this purpose:
> // This is only for use in vcl/test_config.cxx to show the
> // system configuration.
> #define VXL_TYPES_DISPLAY "int_8 is @VXL_INT_8@; int_16 is
> int_32 is @VXL_INT_32@; int_64 is @VXL_INT_64@;..."
> vcl_cout << "VXL types: " VXL_TYPES_DISPLAY << vcl_endl;
I just committed a change to the vxl_config.h* files that is very similar to this. Thanks for the
excellent suggestion. I used statements like this,
#define VXL_INT_8_STRING "@VXL_INT_8@"
Putting each type in a separate define keeps the files better organized. The use of a string
prevents the define from being used to declare anything, so the typedefs will be used.
vxl/tests now has a (sole) test that prints these and many other configuration parameters. The
results should show up on the dashboard soon.