Skip to content

Commit 2260aef

Browse files
committed
_CVarArgObject is currently only available on platforms without ObjC runtime
1 parent 0cf72bc commit 2260aef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Foundation/NSString.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,7 @@ extension NSString : CVarArg {
16521652
}
16531653
}
16541654

1655+
#if !_runtime(_ObjC)
16551656
extension String : CVarArg, _CVarArgObject {
16561657
@inlinable // c-abi
16571658
public var _cVarArgObject: CVarArg {
@@ -1663,3 +1664,4 @@ extension String : CVarArg, _CVarArgObject {
16631664
fatalError("_cVarArgEncoding must be called on NSString instead")
16641665
}
16651666
}
1667+
#endif

0 commit comments

Comments
 (0)