summaryrefslogtreecommitdiffstatshomepage
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, 6 insertions, 0 deletions
diff --git a/py/gc.h b/py/gc.h
index 5aef27c006..bb4204b06f 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -28,9 +28,15 @@
#include <stdbool.h>
#include <stddef.h>
+#include "py/mpconfig.h"
void gc_init(void *start, void *end);
+#if MICROPY_GC_SPLIT_HEAP
+// Used to add additional memory areas to the heap.
+void gc_add(void *start, void *end);
+#endif
+
// These lock/unlock functions can be nested.
// They can be used to prevent the GC from allocating/freeing.
void gc_lock(void);