WIP: CSImportableObject

This commit is contained in:
John Estropia
2016-03-25 17:57:26 +09:00
parent 707445a169
commit 1ff635d8b5
14 changed files with 670 additions and 148 deletions

View File

@@ -63,6 +63,11 @@ internal func bridge<T: CoreStoreBridgeable where T == T.ObjCType.SwiftType>(@no
return closure().objc
}
internal func bridge<T: CoreStoreBridgeable where T == T.ObjCType.SwiftType>(@noescape closure: () -> T?) -> T.ObjCType? {
return closure()?.objc
}
internal func bridge<T: CoreStoreBridgeable where T == T.ObjCType.SwiftType>(@noescape closure: () throws -> T) throws -> T.ObjCType {
do {