aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/sys/common/erl_mmap.c')
-rw-r--r--erts/emulator/sys/common/erl_mmap.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.c b/erts/emulator/sys/common/erl_mmap.c
index ede7c66fdc..58795bd3a6 100644
--- a/erts/emulator/sys/common/erl_mmap.c
+++ b/erts/emulator/sys/common/erl_mmap.c
@@ -34,18 +34,7 @@
/* #define ERTS_MMAP_DEBUG_FILL_AREAS */
#ifdef ERTS_MMAP_DEBUG
-# define ERTS_MMAP_ASSERT(A) \
- ((void) (!(A) \
- ? erts_mmap_assert_failed(#A, __func__, __FILE__, __LINE__)\
- : 1))
-static int
-erts_mmap_assert_failed(const char *a, const char *func, const char *file, int line)
-{
- erts_fprintf(stderr, "%s:%d:%s() Assertion failed: %s\n",
- (char *) file, line, (char *) func, (char *) a);
- abort();
- return 0;
-}
+# define ERTS_MMAP_ASSERT ERTS_ASSERT
#else
# define ERTS_MMAP_ASSERT(A) ((void) 1)
#endif