#pragma once // wrapper for calloc void *refcount_calloc(unsigned long count, unsigned long size); // overwrite a pointer that pointed to 'old' to now point to 'new' void refcount_write(void *new, void *old); // decrement the refcount, but do not free if the refcount hits 0 void refcount_returning(void *ptr);