8
// A Windows DLL is unable to call an arbitrary function in
9
// the main executable. Work around that by making the main
10
// executable pass the callback function pointer to us.
11
void (*goCallback)(void);
12
__declspec(dllexport) void setCallback(void *f)
14
goCallback = (void (*)())f;
16
__declspec(dllexport) void sofunc(void);
18
extern void goCallback(void);
19
void setCallback(void *f) { (void)f; }
9
extern void goCallback(void);