mirror of
https://github.com/apple/swift-system
synced 2026-11-26 04:57:54 +00:00
test two-parameter withBorrowedName
This commit is contained in:
1 parent
5e03246e4e
commit
d259ef476e
2 files changed
+17
No files matched your search
@@ -135,6 +135,7 @@ extension Mach.Port where RightType == Mach.ReceiveRight {
|
||||
/// The underlying port right will be automatically deallocated when
|
||||
/// the Mach.Port object is destroyed.
|
||||
public init(name: mach_port_name_t, context: mach_port_context_t) {
|
||||
precondition(name != mach_port_name_t(MACH_PORT_NULL), "Mach.Port cannot be initialized with MACH_PORT_NULL")
|
||||
self._name = name
|
||||
self._context = context
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user