mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[StringGuts] Support for 32-bit platforms
Add 32-bit support to the new StringGuts.
This commit is contained in:
committed by
Michael Ilseman
parent
5cf9fd7414
commit
f2a96496a0
@@ -23,8 +23,8 @@ public class NSSimpleCString {}
|
||||
public class NSConstantString {}
|
||||
|
||||
// Called by the SwiftObject implementation.
|
||||
public func _convertStringToNSString(_ string: String) -> NSString {
|
||||
return string._bridgeToObjectiveC()
|
||||
public func _getDescription<T>(_ x: T) -> NSString {
|
||||
return String(reflecting: x)._bridgeToObjectiveC()
|
||||
}
|
||||
|
||||
extension NSString : ExpressibleByStringLiteral {
|
||||
|
||||
Reference in New Issue
Block a user