Skip to content

Instantly share code, notes, and snippets.

@windy1
Last active April 24, 2017 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save windy1/a20d2ee0e46668df68758b6e50ff62af to your computer and use it in GitHub Desktop.
Save windy1/a20d2ee0e46668df68758b6e50ff62af to your computer and use it in GitHub Desktop.
static InternalCallback *callback; // set internally
static void myCallback(); // called by external library
void doStuff() {
// ...
external_library_set_callback(myCallback()); // never calls myCallback (when forward-declared)
}
static void myCallback() {
// ...
callback(); // never called
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment