diff options
author | Sverker Eriksson <[email protected]> | 2013-09-04 14:56:49 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-09-30 17:45:45 +0200 |
commit | e0e17136506f9c8363b46a991012422980925dd1 (patch) | |
tree | 1e444d163e87e47839761116b7ecaf607cadd0b4 /erts/emulator/sys/common/erl_mmap.c | |
parent | 984f0e42665e9fa09467145976183bf88f8f3da8 (diff) | |
download | otp-e0e17136506f9c8363b46a991012422980925dd1.tar.gz otp-e0e17136506f9c8363b46a991012422980925dd1.tar.bz2 otp-e0e17136506f9c8363b46a991012422980925dd1.zip |
erts: Add __func__ to ERTS_ASSERT macro
Diffstat (limited to 'erts/emulator/sys/common/erl_mmap.c')
-rw-r--r-- | erts/emulator/sys/common/erl_mmap.c | 13 |
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 |