Last active
April 24, 2017 21:14
-
-
Save windy1/a20d2ee0e46668df68758b6e50ff62af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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