[swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

Chris Hanson cmh at mac.com
Tue Dec 8 14:55:33 CST 2015


On Dec 7, 2015, at 7:40 PM, Gage Morgan via swift-users <swift-users at swift.org> wrote:
> 
> 1) Map the cairo.h file to a system module named CCairo

Since Swift can natively call C APIs, I would recommend just using “Cairo” as the module name.

There’s no need to distinguish a module as being related to a C API.

  -- Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151208/e4a99eb8/attachment.html>


More information about the swift-users mailing list