Skip to content

Commit

Permalink
Merge pull request #4918 from kateinoigakukun/pr-0df99f952c1c29bd10a4…
Browse files Browse the repository at this point in the history
…8d6700a55e6668a839ca

[wasm] Port Sources/Foundation/NSObjCRuntime.swift
  • Loading branch information
kateinoigakukun committed Mar 9, 2024
2 parents e7b4cbf + 7226a6e commit b5fa198
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Sources/Foundation/NSObjCRuntime.swift
Expand Up @@ -264,7 +264,6 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(ProcessInfo.self, "NSProcessInfo"),
(Port.self, "NSPort"),
(PortMessage.self, "NSPortMessage"),
(SocketPort.self, "NSSocketPort"),
(Bundle.self, "NSBundle"),
(ByteCountFormatter.self, "NSByteCountFormatter"),
(Host.self, "NSHost"),
Expand All @@ -279,20 +278,13 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(JSONSerialization.self, "NSJSONSerialization"),
(LengthFormatter.self, "NSLengthFormatter"),
(MassFormatter.self, "NSMassFormatter"),
(NotificationQueue.self, "NSNotificationQueue"),
(NumberFormatter.self, "NSNumberFormatter"),
(Operation.self, "NSOperation"),
(OperationQueue.self, "NSOperationQueue"),
(OutputStream.self, "NSOutputStream"),
(PersonNameComponentsFormatter.self, "NSPersonNameComponentsFormatter"),
(Pipe.self, "NSPipe"),
(Progress.self, "NSProgress"),
(PropertyListSerialization.self, "NSPropertyListSerialization"),
(RunLoop.self, "NSRunLoop"),
(Scanner.self, "NSScanner"),
(Stream.self, "NSStream"),
(Thread.self, "NSThread"),
(Timer.self, "NSTimer"),
(UserDefaults.self, "NSUserDefaults"),
(FileManager.DirectoryEnumerator.self, "NSDirectoryEnumerator"),
(Dimension.self, "NSDimension"),
Expand Down Expand Up @@ -322,8 +314,20 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(UnitVolume.self, "NSUnitVolume"),
(UnitTemperature.self, "NSUnitTemperature"),
]
#if !(os(iOS) || os(Android))
#if !(os(iOS) || os(Android) || os(WASI))
map.append((Process.self, "NSTask"))
#endif
#if !os(WASI)
map += [
(NotificationQueue.self, "NSNotificationQueue"),
(Operation.self, "NSOperation"),
(OperationQueue.self, "NSOperationQueue"),
(SocketPort.self, "NSSocketPort"),
(Progress.self, "NSProgress"),
(RunLoop.self, "NSRunLoop"),
(Thread.self, "NSThread"),
(Timer.self, "NSTimer"),
]
#endif
return map
}()
Expand Down

0 comments on commit b5fa198

Please sign in to comment.