Skip to content

Instantly share code, notes, and snippets.

@christianroman
Created June 10, 2013 05:28
Show Gist options
  • Select an option

  • Save christianroman/5746727 to your computer and use it in GitHub Desktop.

Select an option

Save christianroman/5746727 to your computer and use it in GitHub Desktop.
Mixing C, C++, Objective-C
#if defined _cplusplus
extern "C" {
#endif
void your_c_function()
{
...
}
#if defined _cplusplus
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment