Skip to content

Commit 375bdbd

Browse files
authored
Merge pull request #13971 from gottesmm/pr-72a638e3dd41744f4943fbeafb1e00d8dc0e1ad1
2 parents 309ae61 + e2c1bcf commit 375bdbd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/swift/Runtime/Config.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,16 @@
249249

250250
#endif
251251

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+
252264
#endif // SWIFT_RUNTIME_CONFIG_H

0 commit comments

Comments
 (0)