From f070e3b70631354018c58504b776a83b9d943baa Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 24 May 2020 16:34:04 -0700 Subject: [PATCH] ircd::ctx: Condition on RB_DEBUG rather than NDEBUG for slice_usage_warning tool. --- include/ircd/ctx/slice_usage_warning.h | 2 +- ircd/ctx.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ircd/ctx/slice_usage_warning.h b/include/ircd/ctx/slice_usage_warning.h index 5b2eb6ecf..1fec3919c 100644 --- a/include/ircd/ctx/slice_usage_warning.h +++ b/include/ircd/ctx/slice_usage_warning.h @@ -17,7 +17,7 @@ inline namespace this_ctx struct slice_usage_warning; }} -#ifndef NDEBUG +#ifdef RB_DEBUG struct ircd::ctx::this_ctx::slice_usage_warning { string_view fmt; diff --git a/ircd/ctx.cc b/ircd/ctx.cc index 0b0ab940b..c218a598b 100644 --- a/ircd/ctx.cc +++ b/ircd/ctx.cc @@ -906,7 +906,7 @@ noexcept // ctx/slice_usage_warning.h // -#ifndef NDEBUG +#ifdef RB_DEBUG ircd::ctx::this_ctx::slice_usage_warning::slice_usage_warning(const string_view &fmt, va_rtti &&ap) :fmt @@ -931,7 +931,7 @@ ircd::ctx::this_ctx::slice_usage_warning::slice_usage_warning(const string_view } #endif -#ifndef NDEBUG +#ifdef RB_DEBUG ircd::ctx::this_ctx::slice_usage_warning::~slice_usage_warning() noexcept {