<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Awesome. So no technical binding here. Will test soon. Cheers,</div>
<div><br>
</div>
<div>--MGage--</div>
<div><br>
<br>
<div class="acompli_signature">Sent from <a href="https://aka.ms/qtex0l">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Dec 8, 2015 at 9:01 AM -0800, &quot;Jens Alfke&quot; <span dir="ltr">
&lt;<a href="mailto:jens@mooseyard.com" target="_blank">jens@mooseyard.com</a>&gt;</span> wrote:<br>
<br>
</div>
<div class="" style="word-wrap:break-word"><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 7, 2015, at 7:39 PM, Gage Morgan via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-family:Alegreya-Regular; font-size:15px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
1) Map the cairo.h file to a system module named CCairo</div>
<div class="" style="font-family:Alegreya-Regular; font-size:15px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
2) Include that in a file</div>
<div class="" style="font-family:Alegreya-Regular; font-size:15px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
3) Convert any functions you've entered in C into a Swift format, no binding &quot;workarounds&quot; necessary like other languages,</div>
</div>
</blockquote>
<br class="">
</div>
<div>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.</div>
<div><br class="">
</div>
<div>(That is, this is like C&#43;&#43;’s `extern “C”`, not like SWIG.)</div>
<div><br class="">
</div>
<div>—Jens</div>
</div>
</body>
</html>