]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
assert.h: Add ceph_abort
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 4 Feb 2011 17:28:30 +0000 (09:28 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 4 Feb 2011 17:28:30 +0000 (09:28 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/include/assert.h

index 695d37ae5a79773cfc9315418fea0056dcd951ee..493d50d527341e4ae57315ce6ede494083b56680 100644 (file)
@@ -100,5 +100,13 @@ extern void __ceph_assert_warn(const char *assertion, const char *file, int line
 }
 #endif
 
+/*
+ * ceph_abort aborts the program with a nice backtrace.
+ *
+ * Currently, it's the same as assert(0), but we may one day make assert a
+ * debug-only thing, like it is in many projects.
+ */
+#define ceph_abort assert(0)
+
 #endif