Skip to content

Instantly share code, notes, and snippets.

@sakrist
sakrist / Swift Meets CCxx.md
Created January 30, 2025 18:34 — forked from HiImJulien/Swift Meets CCxx.md
This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.

Swift Meets C/C++

This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.


In this example we're going to invoke a function called say_hello, which, as the name already suggests, prints "Hello, World!" to the terminal.