We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__has_extension
swiftasynccc
1 parent f95fd21 commit 1f91d95Copy full SHA for 1f91d95
include/swift/Runtime/Config.h
@@ -228,8 +228,12 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
228
229
// SWIFT_CC(swiftasync) is the Swift async calling convention.
230
// We assume that it supports mandatory tail call elimination.
231
-#if __has_feature(swiftasynccc) && __has_attribute(swiftasynccall)
232
-#define SWIFT_CC_swiftasync __attribute__((swiftasynccall))
+#if __has_attribute(swiftasynccall)
+# if __has_feature(swiftasynccc) || __has_extension(swiftasynccc)
233
+# define SWIFT_CC_swiftasync __attribute__((swiftasynccall))
234
+# else
235
+# define SWIFT_CC_swiftasync SWIFT_CC_swift
236
+# endif
237
#else
238
#define SWIFT_CC_swiftasync SWIFT_CC_swift
239
#endif
0 commit comments