90#define MEMB(name, structure, num) \
91 static char CC_CONCAT(name,_memb_count)[num]; \
92 static structure CC_CONCAT(name,_memb_mem)[num]; \
93 static struct memb name = {sizeof(structure), num, \
94 CC_CONCAT(name,_memb_count), \
95 (void *)CC_CONCAT(name,_memb_mem)}
char memb_free(struct memb *m, void *ptr)
Definition: memb.c:83
int memb_inmemb(struct memb *m, void *ptr)
Definition: memb.c:108
void * memb_alloc(struct memb *m)
Definition: memb.c:63
void memb_init(struct memb *m)
Definition: memb.c:56
int memb_free_count(struct memb *m)
Definition: memb.c:114
unsigned short size
Definition: memb.h:98
void * mem
Definition: memb.h:101
char * count
Definition: memb.h:100
unsigned short num
Definition: memb.h:99