Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Created August 24, 2013 20:31
Show Gist options
  • Save SiegeLord/6330270 to your computer and use it in GitHub Desktop.
Save SiegeLord/6330270 to your computer and use it in GitHub Desktop.
Callbacks
extern "C"
{
fn a();
fn b(a: extern "C" fn());
}
fn main()
{
unsafe
{
b(a);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment