[swift-users] C/FFI interop

Brent Royal-Gordon brent at architechies.com
Thu Dec 24 01:01:25 CST 2015

> Option 2. Use this syntax and swift-demangle to figure out the symbols:
> public var badfood:@convention(c)(Int) -> Void = { (i:Int) in
>     print(i)
> }

There's an @asmname("foo") directive which can override name mangling, but I don't know how useful it is in practice for this kind of thing.

Brent Royal-Gordon

More information about the swift-users mailing list