Added code example

This commit is contained in:
Justin Ethier 2020-03-05 14:06:32 -05:00
parent 479e880b30
commit a46b2ec6ae

View file

@ -4,7 +4,11 @@
Features
- Updated the C API to optionally allow the GC to free memory pointed to by an Opaque object.
- Updated the C API to optionally allow the GC to free memory pointed to by an Opaque object. For example:
my_c_obj = calloc(1, sizeof(*my_c_obj_type));
make_c_opaque(opq, my_c_obj);
opaque_collect_ptr(&opq) = 1; // Cyclone's GC will free this memory
## 0.15 - February 26, 2020