1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef SHED_GC_H #define SHED_GC_H #include "./std/unistd.h" #include "./patio/patio.h" struct ShedGcObjectHeader { struct ShedGcObjectHeader* next; PatioInt mark; uint32_t children_offset; uint32_t children_count; }; void* shed__runtime__gc_alloc(size_t size, uint32_t children_offset, uint32_t children_count); #endif