Files

43 lines
814 B
C++
Raw Permalink Normal View History

2025-10-31 00:45:32 -06:00
#include "vcruntime.h"
#include "common.h"
#include "context.h"
#include "modules.h"
2025-10-30 02:23:09 -06:00
#include <cstring>
namespace vcruntime {
2025-10-31 00:45:32 -06:00
PVOID CDECL memcpy(PVOID dest, LPCVOID src, SIZE_T count) {
HOST_CONTEXT_GUARD();
return ::memcpy(dest, src, count);
}
2025-10-31 00:45:32 -06:00
PVOID CDECL memset(PVOID dest, int ch, SIZE_T count) {
HOST_CONTEXT_GUARD();
return ::memset(dest, ch, count);
}
2025-10-31 00:45:32 -06:00
int CDECL memcmp(LPCVOID buf1, LPCVOID buf2, SIZE_T count) {
HOST_CONTEXT_GUARD();
return ::memcmp(buf1, buf2, count);
}
2025-10-31 00:45:32 -06:00
PVOID CDECL memmove(PVOID dest, LPCVOID src, SIZE_T count) {
HOST_CONTEXT_GUARD();
return ::memmove(dest, src, count);
}
2023-10-01 23:56:35 -04:00
} // namespace vcruntime
2025-10-31 00:45:32 -06:00
#include "vcruntime_trampolines.h"
extern const wibo::ModuleStub lib_vcruntime = {
(const char *[]){
"vcruntime140",
nullptr,
},
2025-10-31 00:45:32 -06:00
vcruntimeThunkByName,
nullptr,
};