@MasterQ32
Afaik, this will not work in Lite-c
You have to indicate the parameters in the function declaration inside the struct too.
Further more, when assigning a function pointer, the struct has to be a pointer too:
typedef struct
{
void *fnPtr(ENTITY* ent);
} MYSTRUCT;
void assign_func(ENTITY* ent)
{
printf("test");
}
MYSTRUCT str;
function main()
{
MYSTRUCT* temp = &str;
temp->fnPtr = assign_func;
temp->fnPtr(NULL);
}
regards Alain