This thread might be of interest to you:
http://www.coniserver.net/ubbthreads/sho...true#Post809004excessus:
Quote:
Since Lite-C is a little weird about function pointers (they're not actually types, I think), you can't have a function pointer type in your struct. But you can have a void* in which you can store (but not call) a function pointer (manual suggests you do this for function pointer arrays, so it's not THAT unsafe). You can then assign the void* to a function pointer (Lite-C casts automatically), and call the function from the function pointer.
This basicly gives you member functions, but the syntax is quite ugly. Maybe you can fix that with a macro. CALL_MEMBER or something..
He provides an example as well.
Greetz
Last edited by Joozey; 01/22/08 12:33.