-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Debug] Conditional _DebugDescription macro declaration #70351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debug] Conditional _DebugDescription macro declaration #70351
Conversation
@swift-ci test |
@swift-ci test linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe comment that some targets build a stdlib without macros?
Would there a way to gracefully degrade code that uses the macro on a platform that doesn't have macros? I assume not...
I'm not aware of any way to do that. I haven't noticed any other code doing anything like that. |
@swift-ci test |
@swift-ci smoke test |
@swift-ci smoke test |
) Make `_DebugDescription` macro conditional upon macro availability in the build. The `Macros` feature is based on the value of `SWIFT_BUILD_SWIFT_SYNTAX`. See swiftlang#69626 (comment)
Make
_DebugDescription
macro conditional upon macro availability in the build.The
Macros
feature is based on the value ofSWIFT_BUILD_SWIFT_SYNTAX
.See #69626 (comment)