libcmo21/Unvirt/Unvirt.cpp

22 lines
496 B
C++
Raw Normal View History

#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
// 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();
// 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;
}