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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user