diff options
Diffstat (limited to 'starts/meaning-vm/level-0/memorystore.hpp')
-rw-r--r-- | starts/meaning-vm/level-0/memorystore.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/starts/meaning-vm/level-0/memorystore.hpp b/starts/meaning-vm/level-0/memorystore.hpp index a86ccea..cdd7462 100644 --- a/starts/meaning-vm/level-0/memorystore.hpp +++ b/starts/meaning-vm/level-0/memorystore.hpp @@ -2,12 +2,15 @@ #include "common.hpp" #include "ref.hpp" +#include "value.hpp" namespace intellect { namespace level0 { -ref alloc(concept * moved = 0); -void dealloc(ref); +concept * alloc(concept * moved = 0); +template <typename T> +value<T> * valloc(T const & v) { return static_cast<value<T>*>(alloc(new value<T>(v))); } +void dealloc(concept*); std::size_t allocated(); } |