mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
add method "free"
This commit is contained in:
@@ -77,6 +77,11 @@ public:
|
|||||||
return current_db->malloc_internal(bytes);
|
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>
|
template<class A>
|
||||||
static ref<A> get_root() {
|
static ref<A> get_root() {
|
||||||
return current_db->get_root_internal();
|
return current_db->get_root_internal();
|
||||||
|
|||||||
Reference in New Issue
Block a user