diff options
author | Björn Gustavsson <[email protected]> | 2015-03-31 10:15:33 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-13 12:37:55 +0200 |
commit | 44c5a955c8409cc98a5fbdec7898de46b9e5dfbe (patch) | |
tree | ede22a917c08bad382a36ce834edcddbb525e17f | |
parent | 61712dda57647804aec8d4f45da8ae1ccfad732c (diff) | |
download | otp-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.
-rw-r--r-- | erts/emulator/beam/erl_term.h | 1 |
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 */ |