add method "free"

This commit is contained in:
krangelov
2021-09-03 19:58:28 +02:00
parent 4655c2663a
commit fb2454767a

View File

@@ -77,6 +77,11 @@ public:
return current_db->malloc_internal(bytes);
}
template<class A>
static void free(ref<A> o) {
return current_db->free_internal(o.as_object());
}
template<class A>
static ref<A> get_root() {
return current_db->get_root_internal();