mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
11 lines
378 B
C
11 lines
378 B
C
@import Foundation;
|
|
|
|
#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type
|
|
|
|
typedef SWIFT_ENUM_NAMED(NSInteger, ObjCEnum, "SwiftEnum") {
|
|
ObjCEnumOne = 1,
|
|
ObjCEnumTwo,
|
|
ObjCEnumThree
|
|
};
|