summaryrefslogtreecommitdiffstats
path: root/gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gc.h')
-rw-r--r--gc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.h b/gc.h
index 8f7b44ae..9b41492c 100644
--- a/gc.h
+++ b/gc.h
@@ -68,4 +68,9 @@ extern val break_obj;
#define FREE 0x200
INLINE val zap(volatile val *loc) { val ret = *loc; *loc = nil; return ret; }
+
+#if CONFIG_ZAP_DEAD_LOCATIONS
#define z(lvalue) zap(&lvalue)
+#else
+#define z(lvalue) (lvalue)
+#endif