Skip to content

Commit

Permalink
#1908: Disable preConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and stmcgovern committed Aug 24, 2022
1 parent 71c1f28 commit 8e76797
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 8e76797

Please sign in to comment.