Skip to content

Commit

Permalink
Disable preConfig (refer to issue #1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and stmcgovern committed Aug 16, 2022
1 parent 1dbfb5e commit cfd026d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vt/configs/debug/debug_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
#define vt_debug_argument_option(opt) \
::vt::debug::preConfig()->vt_debug_ ## opt

#if vt_check_enabled(production_build)
#define vt_debug_print_impl(force, inconfig, inmode, cat, ctx, ...) \
vt_force_use(__VA_ARGS__)
#else
#define vt_debug_print_impl(force, inconfig, inmode, cat, ctx, ...) \
vt::config::ApplyOp< \
vt::config::DebugPrintOp, \
Expand All @@ -91,6 +95,7 @@
vt::config::CtxEnum::ctx, \
vt::config::ModeEnum::inmode \
>::apply(vt_debug_argument_option(cat) or force, __VA_ARGS__)
#endif

#define vt_debug_print(type, feature, ...) \
vt_debug_print_impl( \
Expand Down

0 comments on commit cfd026d

Please sign in to comment.