diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-06-11 18:01:04 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-06-11 18:01:04 -0400 |
| commit | aa3316b619c8a8bcddd889fa0b806e5798973137 (patch) | |
| tree | 1775e6ec52138cb18f89455026887c785ffa7dac /py | |
| parent | ea760c042bcdff61792a4b5f3de0b3ec212c44c4 (diff) | |
| parent | 541c2a70acab02c419f1ddd4a0ffc38c23a054a0 (diff) | |
Merge remote-tracking branch 'adafruit/master' into vm-computed-goto
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_defns.mk | 5 | ||||
| -rwxr-xr-x | py/gc.c | 4 | ||||
| -rw-r--r-- | py/gc.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 722f06e93..28d90dfea 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -366,3 +366,8 @@ $(addprefix lib/,\ libm/atan2f.c \ ) endif + +.PHONY: check-release-needs-clean-build + +check-release-needs-clean-build: + @echo "RELEASE_NEEDS_CLEAN_BUILD = $(RELEASE_NEEDS_CLEAN_BUILD)" @@ -383,6 +383,10 @@ void gc_collect_start(void) { #endif } +void gc_collect_ptr(void *ptr) { + gc_mark(ptr); +} + void gc_collect_root(void **ptrs, size_t len) { for (size_t i = 0; i < len; i++) { void *ptr = ptrs[i]; @@ -43,6 +43,7 @@ bool gc_is_locked(void); // A given port must implement gc_collect by using the other collect functions. void gc_collect(void); void gc_collect_start(void); +void gc_collect_ptr(void *ptr); void gc_collect_root(void **ptrs, size_t len); void gc_collect_end(void); |
