diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-06-06 15:47:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-06 15:47:10 -0700 |
| commit | fecd3f835ba81cb9d4567f6b83186465ff90e8cb (patch) | |
| tree | 2d6363f88e5d7c4666094138e217ec6a2a2b6b2b /py | |
| parent | c90ce2b9fa98dc8c2a1298524bc434d07393ad6a (diff) | |
| parent | 62de2506e47c14a71c7a9fe04360697ccb966aeb (diff) | |
Merge pull request #1928 from dhalbert/gc-display-objects
Include display objects in gc
Diffstat (limited to 'py')
| -rwxr-xr-x | py/gc.c | 4 | ||||
| -rw-r--r-- | py/gc.h | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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); |
