kill command for the gdb stub to return to hbc
[libogc.git] / libdb / uIP / memb.h
blob8da054ed7a300f066372389bd033df3430b5e8f9
1 #ifndef __MEMB_H__
2 #define __MEMB_H__
4 #include <gctypes.h>
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}
10 struct memb_blks {
11 u16 size;
12 u16 num;
13 u8 *mem;
16 void memb_init(struct memb_blks *blk);
17 void* memb_alloc(struct memb_blks *blk);
18 u8 memb_free(struct memb_blks *blk,void *ptr);
19 u8 memb_ref(struct memb_blks *blk,void *ptr);
21 #endif