mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
(and enums) Previously this part of the compiler assumed that any imported struct or enum would have the same name as it does in C, which is no longer true. Part of rdar://problem/26372925
23 lines
457 B
Objective-C
23 lines
457 B
Objective-C
// This file is meant to be used with the mock SDK, not the real one.
|
|
#import <Foundation.h>
|
|
|
|
#define SWIFT_NAME(x) __attribute__((swift_name(#x)))
|
|
|
|
typedef NSString *ABCStringAlias SWIFT_NAME(ZZStringAlias);
|
|
struct ABCPoint {
|
|
int x;
|
|
int y;
|
|
} SWIFT_NAME(ZZPoint);
|
|
enum ABCAlignment {
|
|
ABCAlignmentLeft,
|
|
ABCAlignmentRight
|
|
} SWIFT_NAME(ZZAlignment);
|
|
|
|
SWIFT_NAME(ZZClass)
|
|
@interface ABCClass : NSObject
|
|
@end
|
|
|
|
SWIFT_NAME(ZZProto)
|
|
@protocol ABCProto
|
|
@end
|