6 #define MEMB(name,size,num) \ 7 static u8 memb_mem_##name[(MEM_ALIGN_SIZE(size)+sizeof(u32))*num]; \ 8 static struct memb_blks name = {size,num,memb_mem_##name} const GLvoid * ptr
Definition: nx_glsym.h:242
void * memb_alloc(struct memb_blks *blk)
Definition: memb.c:12
void memb_init(struct memb_blks *blk)
Definition: memb.c:7
u16 size
Definition: memb.h:11
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
u8 * mem
Definition: memb.h:13
u8 memb_ref(struct memb_blks *blk, void *ptr)
Definition: memb.c:44
u16 num
Definition: memb.h:12
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
u8 memb_free(struct memb_blks *blk, void *ptr)
Definition: memb.c:28