bakatui/src/memory.h
PoliEcho b352daabfb
Some checks failed
/ sync-to-origin (push) Has been cancelled
bit more work on komens
2025-04-05 11:49:01 +02:00

27 lines
395 B
C++

// header guard
#ifndef _ba_me_hg_
#define _ba_me_hg_
#include <cstddef>
#include <menu.h>
#include <vector>
enum AllocationType {
WINDOW_ARRAY,
PANEL_ARRAY,
ITEM_ARRAY,
GENERIC_ARRAY,
WINDOW_TYPE,
PANEL_TYPE,
MENU_TYPE,
GENERIC_TYPE
};
struct allocation {
AllocationType type;
void *ptr;
std::size_t size;
};
void delete_all(std::vector<allocation> *allocated);
#endif