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:
parent
4ca481a5fc
commit
f070e3b706
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue