summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 8f4fae65..3e2db2a4 100644
--- a/lib.h
+++ b/lib.h
@@ -217,6 +217,9 @@ union obj {
struct flonum fl;
};
+#define set(place, val) ((place) = (val))
+#define loc(place) (&(place))
+
INLINE cnum tag(val obj) { return ((cnum) obj) & TAG_MASK; }
INLINE int is_ptr(val obj) { return obj && tag(obj) == TAG_PTR; }
INLINE int is_num(val obj) { return tag(obj) == TAG_NUM; }