src/server/config/conf.h

changeset 25
5dee29c7c530
parent 21
627b09ee74e4
child 38
d07810b02147
equal deleted inserted replaced
24:1a7853a4257e 25:5dee29c7c530
39 #include "../ucx/string.h" 39 #include "../ucx/string.h"
40 40
41 #ifdef __cplusplus 41 #ifdef __cplusplus
42 extern "C" { 42 extern "C" {
43 #endif 43 #endif
44 44
45 // mempool malloc macro 45 // mempool malloc macro
46 #define OBJ_NEW(pool, type) (type*)ucx_mempool_malloc(pool, sizeof(type)) 46 #define OBJ_NEW(pool, type) (type*)ucx_mempool_malloc(pool, sizeof(type))
47 #define OBJ_NEW_N(pool, type) (type*)ucx_mempool_calloc(pool, 1, sizeof(type)) 47 #define OBJ_NEW_N(pool, type) (type*)ucx_mempool_calloc(pool, 1, sizeof(type))
48 48
49 // line types 49 // line types

mercurial