2024-08-23 17:38:45 +08:00
|
|
|
#include <YYCCommonplace.hpp>
|
2023-08-27 12:30:12 +08:00
|
|
|
#include "UnvirtContext.hpp"
|
2023-08-26 20:34:51 +08:00
|
|
|
|
2023-02-08 22:57:31 +08:00
|
|
|
int main(int argc, char* argv[]) {
|
2023-09-20 22:26:39 +08:00
|
|
|
|
2024-08-23 17:38:45 +08:00
|
|
|
// register exception handler on windows release
|
|
|
|
#if defined(LIBCMO_BUILD_RELEASE) && (YYCC_OS == YYCC_OS_WINDOWS)
|
|
|
|
YYCC::ExceptionHelper::Register();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// run core
|
2023-08-27 16:45:07 +08:00
|
|
|
Unvirt::Context::UnvirtContext ctx;
|
2023-08-26 20:34:51 +08:00
|
|
|
ctx.Run();
|
2023-02-11 22:23:19 +08:00
|
|
|
|
2024-08-23 17:38:45 +08:00
|
|
|
// unregister exception handler on windows release
|
|
|
|
#if defined(LIBCMO_BUILD_RELEASE) && (YYCC_OS == YYCC_OS_WINDOWS)
|
|
|
|
YYCC::ExceptionHelper::Register();
|
|
|
|
#endif
|
2023-09-20 22:26:39 +08:00
|
|
|
|
2023-02-08 22:57:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|