aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/executioner.h
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser/executioner.h')
-rw-r--r--bruiser/executioner.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/bruiser/executioner.h b/bruiser/executioner.h
index 4793915..3fe0fac 100644
--- a/bruiser/executioner.h
+++ b/bruiser/executioner.h
@@ -332,7 +332,17 @@ class Arguary {
class XGlobals {
public:
XGlobals() {}
- ~XGlobals() {}
+ ~XGlobals() {
+ for (auto &iter : globals) free(iter.first);
+ }
+
+ void reserve(size_t size) {
+ globals.push_back(std::make_pair(malloc(size), size));
+ }
+
+ void* getAddressByIndex(int index) {
+ }
+
private:
std::list<std::pair<void*, size_t>> globals;
};