T
Travis
I'm relatively new to externs and function pointers but have inherited
the task of modifying some existing code. I have something like this.
extern void myExternFunc (MenuItem *item, void * param)
void (*fptr)(MenuItem *item, void * param) = myExternFunc;
This doesn't compile. I don't understand why. Obviously something like
this:
extern void myFunc (MenuItem *item, void * param) { }
void (*fptr)(MenuItem *item, void * param) = myFunc
compiles fine. The only thing I can think to check is that you can
creat function pointer to externs.
Thanks.
the task of modifying some existing code. I have something like this.
extern void myExternFunc (MenuItem *item, void * param)
void (*fptr)(MenuItem *item, void * param) = myExternFunc;
This doesn't compile. I don't understand why. Obviously something like
this:
extern void myFunc (MenuItem *item, void * param) { }
void (*fptr)(MenuItem *item, void * param) = myFunc
compiles fine. The only thing I can think to check is that you can
creat function pointer to externs.
Thanks.