mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1773f9d767
1 changed files with 6 additions and 4 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -4,11 +4,13 @@
|
|||
|
||||
Features
|
||||
|
||||
- Updated the C API to optionally allow the GC to free memory pointed to by an Opaque object. For example:
|
||||
- Updated the C API to optionally allow Cyclone's GC to free memory pointed to by an Opaque object.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
Bug Fixes
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue