2023-08-27 12:30:12 +08:00
|
|
|
#include "UnvirtContext.hpp"
|
2026-02-03 16:47:23 +08:00
|
|
|
#include <yycc.hpp>
|
|
|
|
|
#include <yycc/carton/ironpad.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
|
|
|
|
2026-02-03 16:47:23 +08:00
|
|
|
// register exception handler if we are in Windows.
|
|
|
|
|
#if defined(LIBCMO_BUILD_RELEASE) && defined(YYCC_OS_WINDOWS)
|
|
|
|
|
yycc::carton::ironpad::startup();
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-08-23 17:38:45 +08:00
|
|
|
// 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
|
|
|
|
2026-02-03 16:47:23 +08:00
|
|
|
// unregister exception handler if we are in Windows
|
|
|
|
|
#if defined(LIBCMO_BUILD_RELEASE) && defined(YYCC_OS_WINDOWS)
|
|
|
|
|
yycc::carton::ironpad::shutdown();
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-02-08 22:57:31 +08:00
|
|
|
return 0;
|
|
|
|
|
}
|