Hello,

Would it be possible to avoid constant definitions by bitshifts ? It makes it harder to extract the info from the file or reuse the cpp definitions for a non C language, e.g. to create bindings to higher level languages.

For example instead of

Code :
#define CL_DEVICE_TYPE_DEFAULT                      (1 << 0)
#define CL_DEVICE_TYPE_CPU                          (1 << 1)
#define CL_DEVICE_TYPE_GPU                          (1 << 2)
#define CL_DEVICE_TYPE_ACCELERATOR                  (1 << 3)
#define CL_DEVICE_TYPE_ALL                          0xFFFFFFFF

define

Code :
#define CL_DEVICE_TYPE_DEFAULT                       0x00000001
#define CL_DEVICE_TYPE_CPU                           0x00000002 
#define CL_DEVICE_TYPE_GPU                           0x00000004
#define CL_DEVICE_TYPE_ACCELERATOR                   0x00000008
#define CL_DEVICE_TYPE_ALL                           0xFFFFFFFF

Thanks,

Daniel