__attribute__ ((__noreturn__));
extern void __ceph_assert_warn(const char *assertion, const char *file, int line, const char *function);
+#ifndef CEPH_ASSERT_FAIL_DEPR
+#define CEPH_ASSERT_FAIL_DEPR
+[[deprecated, noreturn]]
+void inline __ceph_assert_fail_depr(const assert_data &ctx) {
+ __ceph_assert_fail(ctx);
+}
+#endif
+
#ifdef __cplusplus
# define _CEPH_ASSERT_VOID_CAST static_cast<void>
#else
{__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION}; \
((expr) \
? _CEPH_ASSERT_VOID_CAST (0) \
- : __ceph_assert_fail(assert_data_ctx)); } while(false)
+ : __ceph_assert_fail_depr(assert_data_ctx)); } while(false)
#define ceph_assert(expr) \
do { static const ceph::assert_data assert_data_ctx = \