aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-09-04 14:56:49 +0200
committerSverker Eriksson <[email protected]>2013-09-30 17:45:45 +0200
commite0e17136506f9c8363b46a991012422980925dd1 (patch)
tree1e444d163e87e47839761116b7ecaf607cadd0b4 /erts/emulator/beam/sys.h
parent984f0e42665e9fa09467145976183bf88f8f3da8 (diff)
downloadotp-e0e17136506f9c8363b46a991012422980925dd1.tar.gz
otp-e0e17136506f9c8363b46a991012422980925dd1.tar.bz2
otp-e0e17136506f9c8363b46a991012422980925dd1.zip
erts: Add __func__ to ERTS_ASSERT macro
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r--erts/emulator/beam/sys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index dfe60d8ea0..9561c0be96 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -150,8 +150,8 @@ typedef ERTS_SYS_FD_TYPE ErtsSysFdType;
#endif
#define ERTS_ASSERT(e) \
- ((void) ((e) ? 1 : (erl_assert_error(#e, __FILE__, __LINE__), 0)))
-void erl_assert_error(char* expr, char* file, int line);
+ ((void) ((e) ? 1 : (erl_assert_error(#e, __func__, __FILE__, __LINE__), 0)))
+void erl_assert_error(const char* expr, const char *func, const char* file, int line);
#ifdef DEBUG
# define ASSERT(e) ERTS_ASSERT(e)