summaryrefslogtreecommitdiff
path: root/python/examples/refcounting/runtime/refcounting.h
blob: 139f09aa41556415e6dd1ccaa42dc256d265adc9 (plain)
1
2
3
4
5
6
7
8
#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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback