Comment Comment by kinofcain With regards to being able to call a Swift function from C, stevetrewick pointed me to @_cdecl early last year[0][1][2]: @_cdecl("foobar") public func foobar() {} I haven't yet used it in anger, but that will compile in Swift 3.[0]https://news.ycombinator.com/item?id=11650628[1]https://github.com/apple/swift/commit/013aad13d4245a012cfb76...[2]https://swiftlang.ng.bluemix.net/#/repl/d68be430e72609717f71... parent kinofcain 9 years ago
[0]https://news.ycombinator.com/item?id=11650628
[1]https://github.com/apple/swift/commit/013aad13d4245a012cfb76...
[2]https://swiftlang.ng.bluemix.net/#/repl/d68be430e72609717f71...