changed rgb deal, and improve memorybook with 2d
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
#ifndef MEMORYBOOK_H
|
||||
# define MEMORYBOOK_H
|
||||
|
||||
// memorybook.c
|
||||
void mb_init(void(*f)(void*), void *param);
|
||||
void *mb_alloc(size_t size);
|
||||
void mb_add(void *addr);
|
||||
void mb_free(void *addr);
|
||||
void mb_exit(char *str);
|
||||
void mb_exit(char *str, int status);
|
||||
|
||||
// memorybook_2d.c
|
||||
void mb_add_2d(void **addr, int nb);
|
||||
void mb_free_2d(void **addr, int nb);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user