#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN32
#include <Windows.h>
#endif
#include <ui/ui.h>
#include "application.h"
#include "system.h"
int idav_main(
int argc,
char **argv) {
sys_init();
ui_init(
"idav", argc, argv);
application_init();
ui_onstartup(application_startup,
NULL);
ui_main();
sys_uninit();
return 0;
}
#ifndef _WIN32
int main(
int argc,
char** argv) {
return idav_main(argc, argv);
}
#else
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR lpCmdLine,
int nCmdShow) {
return idav_main(__argc, __argv);
}
#endif