summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/memorystore.hpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-22 16:56:03 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-22 16:56:03 -0800
commitc699a8913c5c1e53e0b701109dabe2b8fc70b644 (patch)
treeb8e9d21a28c3ce310ce78ab91a9ce5bdb34ea1c2 /starts/meaning-vm/memorystore.hpp
parent8565b47b9e8a59ac06e4f739d63218b0f1e5cb05 (diff)
downloadstandingwithresilience-c699a8913c5c1e53e0b701109dabe2b8fc70b644.tar.gz
standingwithresilience-c699a8913c5c1e53e0b701109dabe2b8fc70b644.zip
while wip, moved concept storage off of helpers
Diffstat (limited to 'starts/meaning-vm/memorystore.hpp')
-rw-r--r--starts/meaning-vm/memorystore.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/starts/meaning-vm/memorystore.hpp b/starts/meaning-vm/memorystore.hpp
new file mode 100644
index 0000000..d1ca98d
--- /dev/null
+++ b/starts/meaning-vm/memorystore.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "concept.hpp"
+
+ref alloc(concept * moved = 0);
+template <typename T>
+vref<T> valloc(T const & val) { return alloc(new value<T>(val)); }
+void dealloc(ref);
+void dealloc_all(ref); // todo?