Files

29 lines
515 B
C++
Raw Permalink Normal View History

2023-09-12 22:44:56 +09:00
#include "common.h"
#include "context.h"
#include "modules.h"
2023-09-12 22:44:56 +09:00
namespace mscoree {
2025-09-29 20:07:19 -06:00
void WIN_FUNC CorExitProcess(int exitCode) {
HOST_CONTEXT_GUARD();
2025-09-29 20:07:19 -06:00
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
exit(exitCode);
2023-09-12 22:44:56 +09:00
}
2025-09-29 20:07:19 -06:00
} // namespace mscoree
2023-09-12 22:44:56 +09:00
static void *resolveByName(const char *name) {
2025-09-29 20:07:19 -06:00
if (strcmp(name, "CorExitProcess") == 0)
return (void *)mscoree::CorExitProcess;
2023-09-12 22:44:56 +09:00
return nullptr;
}
extern const wibo::ModuleStub lib_mscoree = {
2023-09-12 22:44:56 +09:00
(const char *[]){
"mscoree",
nullptr,
},
resolveByName,
nullptr,
};