What is the type of an enum whose values appear to be strings?
问题 I am working with Apple's ScriptingBridge framework, and have generated a header file for iTunes that contains several enum s like this: typedef enum { iTunesESrcLibrary = 'kLib', iTunesESrcIPod = 'kPod', iTunesESrcAudioCD = 'kACD', iTunesESrcMP3CD = 'kMCD', iTunesESrcDevice = 'kDev', iTunesESrcRadioTuner = 'kTun', iTunesESrcSharedLibrary = 'kShd', iTunesESrcUnknown = 'kUnk' } iTunesESrc; My understanding was that enum values had to be integer-like, but this definition seems to violate that