mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When serializing `@available` attributes, if the attribute applies to a custom domain include enough information to deserialize the reference to that domain. Resolves rdar://138441265.
16 lines
462 B
C
16 lines
462 B
C
#include <feature-availability.h>
|
|
|
|
static struct __AvailabilityDomain __Baltic __attribute__((
|
|
availability_domain(Baltic))) = {__AVAILABILITY_DOMAIN_ENABLED, 0};
|
|
static struct __AvailabilityDomain __Mediterranean __attribute__((
|
|
availability_domain(Mediterranean))) = {__AVAILABILITY_DOMAIN_ENABLED, 0};
|
|
|
|
#define AVAIL 0
|
|
#define UNAVAIL 1
|
|
|
|
__attribute__((availability(domain:Baltic, AVAIL)))
|
|
void available_in_baltic(void);
|
|
|
|
#undef UNAVAIL
|
|
#undef AVAIL
|