aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-03-31 10:15:33 +0200
committerBjörn Gustavsson <[email protected]>2015-04-13 12:37:55 +0200
commit44c5a955c8409cc98a5fbdec7898de46b9e5dfbe (patch)
treeede22a917c08bad382a36ce834edcddbb525e17f /erts/emulator/beam
parent61712dda57647804aec8d4f45da8ae1ccfad732c (diff)
downloadotp-44c5a955c8409cc98a5fbdec7898de46b9e5dfbe.tar.gz
otp-44c5a955c8409cc98a5fbdec7898de46b9e5dfbe.tar.bz2
otp-44c5a955c8409cc98a5fbdec7898de46b9e5dfbe.zip
erl_term.h: Add is_not_map() macro
For consistency with other data types, add the is_not_map() macro.
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_term.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_term.h b/erts/emulator/beam/erl_term.h
index cff012d5d1..602aab46dc 100644
--- a/erts/emulator/beam/erl_term.h
+++ b/erts/emulator/beam/erl_term.h
@@ -1027,6 +1027,7 @@ _ET_DECLARE_CHECKED(struct erl_node_*,external_ref_node,Eterm)
#define is_map_header(x) (((x) & (_TAG_HEADER_MASK)) == _TAG_HEADER_MAP)
#define is_map(x) (is_boxed((x)) && is_map_header(*boxed_val(x)))
+#define is_not_map(x) (!is_map(x))
#define is_map_rel(RTERM,BASE) is_map(rterm2wterm(RTERM,BASE))
/* number tests */