can anyone give some advice about why this code fails to compile with SDCC? (with sccz80, it does not even parse correctly...)
Code: Select all
// zcc +zx -compiler=sdcc -c pepe.c
// This generates an error!
typedef void (codeset_function_t)( void );
extern codeset_function_t my_user_init;
extern codeset_function_t my_user_game_init;
extern codeset_function_t my_user_game_loop;
codeset_function_t *codeset_functions[ 3 ] = {
&my_user_init,
&my_user_game_init,
&my_user_game_loop,
};
https://sourceforge.net/p/sdcc/bugs/2497/
Any advice? My current B-plan is to replace the function pointers with void* pointers, but I'd loose type checking and all...
TIA
J.