Skip to content

Runtime: Forward SwiftValue -description and -debugDescription to the boxed value. #3581

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

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

jckarter
Copy link
Contributor

Following the example of SwiftObject, use swift_getSummary to get the description string for a Swift value as the description of a boxed SwiftValue.

… boxed value.

Following the example of SwiftObject, use swift_getSummary to get the description string for a Swift value as the description of a boxed SwiftValue.
@jckarter
Copy link
Contributor Author

@swift-ci Please test and merge

expectEqual(summary, _bridgeAnythingToObjectiveC(x).debugDescription)
}

expectEqual(0, LifetimeTracked.instances)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test harness does the leak check for you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, thanks @gribozavr !

@swift-ci swift-ci merged commit 4910b58 into swiftlang:master Jul 18, 2016
@jckarter jckarter deleted the swiftvalue-description branch July 18, 2016 21:09
kateinoigakukun pushed a commit that referenced this pull request Aug 31, 2022
[pull] swiftwasm from main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants