0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd::ctx: Condition on RB_DEBUG rather than NDEBUG for slice_usage_warning tool.

This commit is contained in:
Jason Volk 2020-05-24 16:34:04 -07:00
parent 4ca481a5fc
commit f070e3b706
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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
{