aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-03-10 19:57:07 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:34 +0100
commit2fadbefc264d33da526ec61cffc9847f724d8d92 (patch)
tree5359fe987ea2a5e991ffe4fe0298ac264dde0ae3 /erts/emulator/beam/beam_emu.c
parent27e57aa05354b743b735a41716c0e3af18f2843e (diff)
downloadotp-2fadbefc264d33da526ec61cffc9847f724d8d92.tar.gz
otp-2fadbefc264d33da526ec61cffc9847f724d8d92.tar.bz2
otp-2fadbefc264d33da526ec61cffc9847f724d8d92.zip
erts: Reintroduce is_map macro
as shorthand for is_flatmap || is_hashmap
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 10ae3ed77c..289b60e1f9 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -699,7 +699,7 @@ void** beam_ops;
Fail; \
}
-#define IsMap(Src, Fail) if (is_not_flatmap(Src) && is_not_hashmap(Src)) { Fail; }
+#define IsMap(Src, Fail) if (!is_map(Src)) { Fail; }
#define HasMapField(Src, Key, Fail) if (has_not_map_field(Src, Key)) { Fail; }