1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-01 08:03:02 +00:00

Shrink the public interface by hiding internal state.

This commit is contained in:
Calvin Rose
2018-03-31 16:40:36 -04:00
parent 507f9f9c57
commit 027b2a81c2
14 changed files with 68 additions and 24 deletions

View File

@@ -39,6 +39,8 @@
#define dst_gc_unmark(m) (dst_gc_header(m)->flags &= ~DST_MEM_COLOR)
#define dst_gc_reachable(m) (dst_gc_header(m)->flags & DST_MEM_REACHABLE)
// #define dst_gclock() (dst_vm_gc_suspend++)
// #define dst_gcunlock(lock) (dst_vm_gc_suspend = lock)
/* Memory header struct. Node of a linked list of memory blocks. */
typedef struct DstGCMemoryHeader DstGCMemoryHeader;