1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef AMALGAM_ALLOC_H #define AMALGAM_ALLOC_H #include "types.h" #include "misc.h" #define ALLOC_OK 0 #define ALLOC_FAIL -1 CHECK_RESULT int am_malloc(usize size, void **mem); CHECK_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); void am_free(void *mem); #endif