@@ -0,0 +1,23 @@
|
||||
// header guard
|
||||
#ifndef _ba_me_hg_
|
||||
#define _ba_me_hg_
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
enum AllocationType {
|
||||
WINDOW_ARRAY,
|
||||
PANEL_ARRAY,
|
||||
GENERIC_ARRAY,
|
||||
WINDOW_TYPE,
|
||||
PANEL_TYPE,
|
||||
GENERIC_TYPE
|
||||
};
|
||||
|
||||
struct allocation {
|
||||
AllocationType type;
|
||||
void *ptr;
|
||||
std::size_t size;
|
||||
};
|
||||
|
||||
void delete_all(std::vector<allocation> *allocated);
|
||||
#endif
|
||||
Reference in New Issue
Block a user