> On Dec 7, 2015, at 7:39 PM, Gage Morgan via swift-users
> <[email protected]> wrote:
>
> 1) Map the cairo.h file to a system module named CCairo
> 2) Include that in a file
> 3) Convert any functions you've entered in C into a Swift format, no binding
> "workarounds" necessary like other languages,
Yes. Swift understands that this is a C function, and follows C calling
conventions in the machine code that implements the call, so there’s no glue
code necessary.
(That is, this is like C++’s `extern “C”`, not like SWIG.)
—Jens
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users