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.
SWIFT_IMPORT_UNSAFE
1 parent b11b897 commit 4c135aaCopy full SHA for 4c135aa
include/swift/Basic/Compiler.h
@@ -81,6 +81,13 @@
81
#define SWIFT_ATTRIBUTE_ALWAYS_INLINE
82
#endif
83
84
+// Needed for C++ bridging functions which return types with pointers.
85
+#if __has_attribute(swift_attr)
86
+#define SWIFT_IMPORT_UNSAFE __attribute__((swift_attr("import_unsafe")))
87
+#else
88
+#define SWIFT_IMPORT_UNSAFE
89
+#endif
90
+
91
#ifdef __GNUC__
92
#define SWIFT_ATTRIBUTE_NORETURN __attribute__((noreturn))
93
#elif defined(_MSC_VER)
0 commit comments