wibo/dll/mscoree.cpp
Ethan Roseman 6a420668e5
CorExitProcess for armcc_41_1440 (#44)
* Implement CorExitProcess for armcc_41_1440

* Fix function signature, add dll coverage
2023-09-12 22:44:56 +09:00

24 lines
384 B
C++

#include "common.h"
namespace mscoree {
void WIN_FUNC CorExitProcess(int exitCode) {
exit(exitCode);
}
}
static void *resolveByName(const char *name) {
if (strcmp(name, "CorExitProcess") == 0) return (void *) mscoree::CorExitProcess;
return nullptr;
}
wibo::Module lib_mscoree = {
(const char *[]){
"mscoree",
"mscoree.dll",
nullptr,
},
resolveByName,
nullptr,
};