geode/loader/dobby/external/xnucxx/LiteMemOpt.cc
2022-07-30 19:24:03 +03:00

22 lines
423 B
C++

#include "xnucxx/LiteMemOpt.h"
#include <stdlib.h>
#include <string.h>
#if 1
void *_memcpy(void *dest, const void *src, int len) {
return memcpy(dest, src, len);
}
void *_memset(void *dest, int ch, int count) {
return memset(dest, ch, count);
}
#endif
void *LiteMemOpt::alloc(int size) {
void *result = malloc(size);
return result;
}
void LiteMemOpt::free(void *address, int size) {
return ::free(address);
}