preparation for malloc replacement

This commit is contained in:
overflowerror 2017-03-11 02:09:52 +01:00
parent 8a0260d36f
commit f3a2da064c

View file

@ -4,6 +4,8 @@
#include <stdlib.h>
#include <string.h>
#define allocate_object(type) allocate(sizeof(type));
#define clone_string(s) clone((void*) s, strlen(s) + 1)
#define clone_obj(obj, class) clone((void*) obj, sizeof(class))