Hello,
I'm using Scripting Bridge to interact with another application and in the .h file of that application I read the following declaration.
Code:
enum ApertureColorLabels {
ApertureColorLabelsNoColorLabel = 'rkNL' /* No color label */,
ApertureColorLabelsRed = 'rkRD' /* Red color label */,
ApertureColorLabelsOrange = 'rkOR' /* Orange color label */,
ApertureColorLabelsYellow = 'rkYL' /* Yellow color label */,
ApertureColorLabelsGreen = 'rkGR' /* Green color label */,
ApertureColorLabelsBlue = 'rkBL' /* Blue color label */,
ApertureColorLabelsPurple = 'rkPU' /* Purple color label */,
ApertureColorLabelsGray = 'rkGY' /* Gray color label */
};
typedef enum ApertureColorLabels ApertureColorLabels;
Does this mean that the constants (such as, ApertureColorLabelsRed) are integers? Or are they of type char?
In other words, can an enum only hold integer values?
Thanks!