I solved the problem! I've to make the function pointer to be extern(C), so I will have
extern(C)
{
int function(...) tfunc;
}
I solved the problem! I've to make the function pointer to be extern(C), so I will have
extern(C)
{
int function(...) tfunc;
}