You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
285 B

#include "node.hpp"
#include "objpool.hpp"
static ObjPool<node_t> g_NODE_POOL;
node_t*
node_alloc()
{
return g_NODE_POOL.alloc();
}
void
node_free(node_t *node_)
{
g_NODE_POOL.free(node_);
}
void
node_gc()
{
g_NODE_POOL.gc();
}
void
node_clear()
{
g_NODE_POOL.clear();
}