Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created September 1, 2012 11:34
Show Gist options
  • Save preslavrachev/3570553 to your computer and use it in GitHub Desktop.
Save preslavrachev/3570553 to your computer and use it in GitHub Desktop.
#include <iostream>
#include "pixel.h"
using namespace std;
typedef int (*FunctionFunc)(); // check that out!!!
void theWrapperFunction(FunctionFunc fnc) {
cout << fnc();
}
int theCallBackFunction() {
return 12345;
}
//here starts the show
int main (int argc, char * const argv[]) {
theWrapperFunction(theCallBackFunction);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment