4 ms·
Seems to be being worked on, an attribute @_cdecl has been merged into master [0] and seems to compile in the current beta of 3.0 [1] although I haven't tested
by stevetrewick 10y ago
Seems to be being worked on, an attribute @_cdecl has been merged into master [0] and seems to compile in the current beta of 3.0 [1] although I haven't tested it.
[0] https://github.com/apple/swift/commit/013aad13d4245a012cfb762b7edccf92013b3609 https://github.com/apple/swift/commit/013aad13d4245a012cfb76...
[1] http://swiftlang.ng.bluemix.net/#/repl/d68be430e72609717f718006aa0ae137eae872ca7a0b7e8141b351770b0c9eac http://swiftlang.ng.bluemix.net/#/repl/d68be430e72609717f718...
- kinofcain 10y agoAwesome, thanks so much for pointing that out.
- stevetrewick 10y agoYou're welcome. I have a custom mouse cursor a11y app that has to use some nasty old C callback API, which is exactly the PITA you describe, so I've been keeping an eye out.