From: Cloudwalk Date: Tue, 20 Jul 2021 18:05:36 +0000 (-0400) Subject: zone: Add Z_ counterparts for Realloc and strdup X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8507719df58bf767983c92ecfa32a70090bf501e;p=xonotic%2Fdarkplaces.git zone: Add Z_ counterparts for Realloc and strdup --- diff --git a/zone.h b/zone.h index 5fe3c63d..a7837226 100644 --- a/zone.h +++ b/zone.h @@ -142,7 +142,9 @@ void Memory_Shutdown (void); void Memory_Init_Commands (void); extern mempool_t *zonemempool; -#define Z_Malloc(size) Mem_Alloc(zonemempool,size) +#define Z_Malloc(size) Mem_Alloc(zonemempool, size) +#define Z_Realloc(data, size) Mem_Realloc(zonemempool, data, size) +#define Z_strdup(s) Mem_strdup(zonemempool, s) #define Z_Free(data) Mem_Free(data) extern struct cvar_s developer_memory;