diff options
Diffstat (limited to 'starts/meaning-vm/memorystore.hpp')
-rw-r--r-- | starts/meaning-vm/memorystore.hpp | 9 |
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? |