CringeDB/System Abstraction/linux/cdb_memory.c

15 lines
270 B
C
Raw Permalink Normal View History

2024-02-18 17:42:05 +01:00
#include "../cdb_system.h"
2022-08-28 15:50:14 +02:00
#include <stdlib.h>
// Memory API
2024-02-18 17:42:05 +01:00
void * sys_heapAlloc(size_t bytes) {
2022-08-28 15:50:14 +02:00
return malloc(bytes);
}
2024-02-18 17:42:05 +01:00
void * sys_heapResize(void * memory, size_t newBytes) {
return realloc(memory, newBytes);
2022-08-28 15:50:14 +02:00
}
2024-02-18 17:42:05 +01:00
void sys_heapFree(void * memory) {
free(memory);
2022-08-28 15:50:14 +02:00
}