diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-06-06 17:49:32 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-06-06 17:49:32 -0400 |
| commit | 62de2506e47c14a71c7a9fe04360697ccb966aeb (patch) | |
| tree | 2d6363f88e5d7c4666094138e217ec6a2a2b6b2b /py | |
| parent | c90ce2b9fa98dc8c2a1298524bc434d07393ad6a (diff) | |
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); |
