Skip to content

Commit

Permalink
Merge pull request #1924 from DARMA-tasking/1908-disable-debug-print-…
Browse files Browse the repository at this point in the history
…preconfig-evaluation

#1908: Disable preConfig
  • Loading branch information
PhilMiller authored Aug 30, 2022
2 parents ff3ec68 + a1731b6 commit 825ce69
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, ...) \
do { if (false) vt_force_use(__VA_ARGS__); } while (false)
#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 825ce69

Please sign in to comment.