typedef Script *(*WorkerLoadFunc)(Heap **heap, const char *fname, Value *error, void *data);
typedef void (*MainThreadFunc)(Heap *heap, void *data);
void fixgui_register_functions(Heap *heap, WorkerLoadFunc load_func, void *load_data);
void fixgui_register_worker_functions(Heap *heap);
void fixgui_run_in_main_thread(MainThreadFunc func, void *data);
void fixgui_init_virtual(Heap *heap, LoadScriptFunc func, void *data);
void fixgui_integrate_io_event_loop(Heap *heap);
The application must provide these global functions to start the program instead of the regular
main
function.
int app_main(int argc, char **argv);
int console_main(int argc, char **argv);