diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-22 20:26:36 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-22 20:26:36 +0100 |
commit | fd8b6bcf5572b342b1e61f4f3737a2a650659166 (patch) | |
tree | 298c64dacb4a098e6c792f3506aac001334313e9 /py/gc.h | |
parent | 7b2d3f38ceae0ca3839d3812421a8a113ae5105c (diff) | |
download | micropython-fd8b6bcf5572b342b1e61f4f3737a2a650659166.tar.gz micropython-fd8b6bcf5572b342b1e61f4f3737a2a650659166.zip |
Add gc_free function to force a block to be freed.
Diffstat (limited to 'py/gc.h')
-rw-r--r-- | py/gc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,8 @@ void gc_collect_root(void **ptrs, machine_uint_t len); void gc_collect_end(); void gc_collect(); void *gc_alloc(machine_uint_t n_bytes); -machine_uint_t gc_nbytes(void *ptr_in); +void gc_free(void *ptr); +machine_uint_t gc_nbytes(void *ptr); void *gc_realloc(void *ptr, machine_uint_t n_bytes); typedef struct _gc_info_t { |