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.
2 parents 309ae61 + e2c1bcf commit 375bdbdCopy full SHA for 375bdbd
include/swift/Runtime/Config.h
@@ -249,4 +249,16 @@
249
250
#endif
251
252
+// These are temporary macros during the +0 cc exploration to cleanly support
253
+// both +0 and +1 in the runtime.
254
+#ifndef SWIFT_RUNTIME_ENABLE_GUARANTEED_NORMAL_ARGUMENTS
255
+#define SWIFT_NS_RELEASES_ARGUMENT NS_RELEASES_ARGUMENT
256
+#define SWIFT_CC_PLUSONE_GUARD(...) do { __VA_ARGS__ ; } while (0)
257
+#define SWIFT_CC_PLUSZERO_GUARD(...)
258
+#else
259
+#define SWIFT_NS_RELEASES_ARGUMENT
260
+#define SWIFT_CC_PLUSONE_GUARD(...)
261
+#define SWIFT_CC_PLUSZERO_GUARD(...) do { __VA_ARGS__ ; } while (0)
262
+#endif
263
+
264
#endif // SWIFT_RUNTIME_CONFIG_H
0 commit comments