19 lines
361 B
C
19 lines
361 B
C
|
|
// HAKMEM libc wrapper for fallback allocations
|
||
|
|
#include "hakmem_internal.h"
|
||
|
|
|
||
|
|
void* hkm_libc_malloc(size_t size) {
|
||
|
|
return malloc(size);
|
||
|
|
}
|
||
|
|
|
||
|
|
void* hkm_libc_calloc(size_t count, size_t size) {
|
||
|
|
return calloc(count, size);
|
||
|
|
}
|
||
|
|
|
||
|
|
void* hkm_libc_realloc(void* ptr, size_t size) {
|
||
|
|
return realloc(ptr, size);
|
||
|
|
}
|
||
|
|
|
||
|
|
void hkm_libc_free(void* ptr) {
|
||
|
|
free(ptr);
|
||
|
|
}
|