mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
They need external linkage not linkonce_odr which can only be used by defintions not declarations. This got exposed by clang imported protocol witness table declarations. They get assigned shared linkage since they are potentially not unique. rdar://26563441
8 lines
223 B
C
8 lines
223 B
C
#define CF_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
|
|
#define NS_OPTIONS(_type, _name) CF_OPTIONS(_type, _name)
|
|
|
|
typedef NS_OPTIONS(int, SomeOptions) {
|
|
SomeOptionsFoo = 1,
|
|
SomeOptionsBar = 2,
|
|
};
|