mirror of
https://github.com/apple/swift.git
synced 2026-10-28 21:15:56 +01:00
Relax the foreign representable predicate to enable (ownership-audited) CF Types to be specified as parameters and return types of Swift implementations. Resolves rdar://175682727
16 lines
428 B
C
16 lines
428 B
C
@import Foundation;
|
|
|
|
#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
|
|
#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
|
|
#define CF_CONSUMED __attribute__((cf_consumed))
|
|
|
|
CF_RETURNS_RETAINED
|
|
CFStringRef returns_retained(void);
|
|
|
|
CF_RETURNS_NOT_RETAINED
|
|
CFStringRef returns_not_retained(void);
|
|
|
|
void passes_borrowed(CFStringRef string);
|
|
|
|
void passes_consumed(CF_CONSUMED CFStringRef string);
|