mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
use skynet_malloc api
This commit is contained in:
@@ -3,11 +3,15 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef SKYNET_MALLOC_RENAME
|
||||
|
||||
#define malloc skynet_malloc
|
||||
#define calloc skynet_calloc
|
||||
#define realloc skynet_realloc
|
||||
#define free skynet_free
|
||||
|
||||
#endif
|
||||
|
||||
void * skynet_malloc(size_t sz);
|
||||
void * skynet_calloc(size_t nmemb,size_t size);
|
||||
void * skynet_realloc(void *ptr, size_t size);
|
||||
|
||||
Reference in New Issue
Block a user