mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Added code example
This commit is contained in:
parent
479e880b30
commit
a46b2ec6ae
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue