@damocles: It does? Is that too for A7? I was under the impression that it was not possible to call structure elements as functions...

I always do this, seems to work just fine, but not sure if it could go wrong with an integer pointer as function pointer storage:

Code:
typedef struct
{
 int *spot_func;
} SPOT;

void spot_func_prototype(SPOT *s);

...

void spot_remove(SPOT s)
{
 error("yay");
}

void main()
{
 SPOT spot;
 spot.func = spot_remove;

 spot_func_prototype = spot.func;
 spot_func_prototype( spot );
}



Last edited by Joozey; 09/03/10 11:35.

Click and join the 3dgs irc community!
Room: #3dgs