summaryrefslogtreecommitdiff
path: root/py/gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/gc.h')
-rw-r--r--py/gc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/gc.h b/py/gc.h
index 73d86e6c3..4690d3937 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -48,7 +48,11 @@ void gc_collect_end(void);
// Use this function to sweep the whole heap and run all finalisers
void gc_sweep_all(void);
-void *gc_alloc(size_t n_bytes, bool has_finaliser);
+enum {
+ GC_ALLOC_FLAG_HAS_FINALISER = 1,
+};
+
+void *gc_alloc(size_t n_bytes, unsigned int alloc_flags);
void gc_free(void *ptr); // does not call finaliser
size_t gc_nbytes(const void *ptr);
void *gc_realloc(void *ptr, size_t n_bytes, bool allow_move);