Hi, I have a list of named enums:
typedef enum EGCDevicePneumaticState {
EUnknown,
ENotPresent,
ENotReady,
EPressureNotReady,
EFlowNotReady,
EReadyOn,
EReadyOFF,
NumberOfEGCDevicePneumaticState,
};
typedef enum EGCDeviceReadiness {
EUnknown,
EReady,
EReadForPrep,
ENotReady,
NumberOfEGCDeviceReadiness,
};
typedef enum EGCDeviceRunState {
EIdle,
EPreRun,
ERun,
EPostRun,
NumberOfEGCDeviceRunState,
};
typedef enum EGCDeviceThermalState {
EUnknown,
ENotPresent,
EOff,
ENotReady,
EReady,
NumberOfEGCDeviceThermalState,
};
and I am getting errors like:
error C2365: 'EUnknown' : redefinition; previous definition was 'enumerator'
see declaration of 'EUnknown'
error C2365: 'EReady' : redefinition; previous definition was 'enumerator'
see declaration of 'EReady'
error C2365: 'ENotReady' : redefinition; previous definition was 'enumerator'
see declaration of 'ENotReady'
and so on, but these are named, doesn't that mean I can re-use the names for other enums?