Skip to content

Commit a8d0327

Browse files
authored
Merge pull request swiftlang#102 from dgrove-oss/missing-dispatchMain
add dispatchMain to wrapping overlay
2 parents 8669dea + 455fa88 commit a8d0327

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/swift/Wrapper.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import CDispatch
1515
// This file contains declarations that are provided by the
1616
// importer via Dispatch.apinote when the platform has Objective-C support
1717

18+
@noreturn public func dispatchMain() {
19+
CDispatch.dispatch_main()
20+
}
21+
1822
public class DispatchObject {
1923

2024
internal func wrapped() -> dispatch_object_t {

0 commit comments

Comments
 (0)