summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/common-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/common-utils.h')
-rw-r--r--libglusterfs/src/common-utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index 18ab56aeb9b..1954892ff8f 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -422,6 +422,14 @@ BIT_VALUE (unsigned char *array, unsigned int index)
} while (0)
#endif
+#define GF_ABORT(msg) \
+ do { \
+ gf_msg_callingfn ("", GF_LOG_CRITICAL, 0, \
+ LG_MSG_ASSERTION_FAILED, \
+ "Assertion failed: " msg); \
+ abort(); \
+ } while (0)
+
#define GF_UUID_ASSERT(u) \
if (gf_uuid_is_null (u))\
GF_ASSERT (!"uuid null");