mirror of
https://github.com/apple/swift-system
synced 2026-11-25 04:47:55 +00:00
[gardening] add some more availability annotations
This commit is contained in:
1 parent
0e060b7a7a
commit
7654f14f8c
1 file changed
+3
@@ -11,8 +11,10 @@
|
||||
|
||||
import Darwin.Mach
|
||||
|
||||
@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *)
|
||||
public protocol MachPortRight {}
|
||||
|
||||
@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *)
|
||||
@inlinable
|
||||
internal func _machPrecondition(
|
||||
file: StaticString = #file,
|
||||
@@ -27,6 +29,7 @@ internal func _machPrecondition(
|
||||
@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *)
|
||||
@frozen
|
||||
public enum Mach {
|
||||
@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *)
|
||||
public struct Port<RightType: MachPortRight>: ~Copyable {
|
||||
@usableFromInline
|
||||
internal var _name: mach_port_name_t
|
||||
|
||||
Reference in new issue
Block a user