diff options
Diffstat (limited to 'gc.h')
-rw-r--r-- | gc.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -55,3 +55,6 @@ extern val break_obj; #define gc_hint(var) gc_hint_func(&var) #define REACHABLE 0x100 #define FREE 0x200 + +INLINE val zap(volatile val *loc) { val ret = *loc; *loc = nil; return ret; } +#define z(lvalue) zap(&lvalue) |