diff options
author | Doug Evans <dje@google.com> | 2014-01-17 10:00:07 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-01-17 10:00:07 -0800 |
commit | df049a5831c7c573698b98bfd4bc0ec8dc854c1f (patch) | |
tree | 61be8d087595fb6b54328f8db7e9e0f950cb28f6 /gdb/common/vec.h | |
parent | ea38d2a92e349df1f6438c1bd7b899f4cd951321 (diff) | |
download | binutils-gdb-df049a5831c7c573698b98bfd4bc0ec8dc854c1f.tar.gz |
Move ASSERT_FUNCTION to FUNCTION_NAME.
* common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
and moved here ...
* common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
#include "common-utils.h".
(gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
* common/vec.h (VEC_ASSERT_PASS): Update.
* darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
(MACH_CHECK_ERROR): Update.
Diffstat (limited to 'gdb/common/vec.h')
-rw-r--r-- | gdb/common/vec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/vec.h b/gdb/common/vec.h index 987457301b1..7bae2ff9494 100644 --- a/gdb/common/vec.h +++ b/gdb/common/vec.h @@ -398,7 +398,7 @@ extern void *vec_o_reserve (void *, int, size_t, size_t); #define VEC_ASSERT_PASS ,file_,line_ #define vec_assert(expr, op) \ ((void)((expr) ? 0 : (gdb_assert_fail (op, file_, line_, \ - ASSERT_FUNCTION), 0))) + FUNCTION_NAME), 0))) #define VEC(T) VEC_##T #define VEC_OP(T,OP) VEC_##T##_##OP |