Hey..
I am trying to figure out how I can make some kind of callback on my function.
Lets say i have a function like so:
Code
void callBackTester (int i, int j){
for(; i < j; i++){
//Let callback know what i is now.
//callBack(i);
}
}
And when I call the function i want it to be like this.:
Code
callBackTester(0, 10) {
printf("%d", i);
}
I can do this with preprocessor macros, but those can't be recursive which i need it to be..
This post was edited by Utunity on Feb 18 2013 03:06pm