mirror of
https://github.com/sigmasternchen/crap-libs
synced 2025-03-15 07:38:56 +00:00
preparation for malloc replacement
This commit is contained in:
parent
8a0260d36f
commit
f3a2da064c
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue