Skip to content

Commit

Permalink
#306: remove multi-line comment warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nlslatt committed Mar 26, 2019
1 parent eb73f7d commit ca4f121
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
30 changes: 19 additions & 11 deletions src/vt/configs/debug/debug_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,15 @@ extern runtime::Runtime* curRT;
#define debug_print_regular(debug_type, main_fmt, main_arg...) \
debug_virtual_ctx_none(debug_type, main_fmt, main_arg)

// #define debug_print_array(debug_type, main_fmt, main_arg...) \
// debug_virtual_ctx_1(debug_type, "idx={}", thisIndex, main_fmt, ##main_arg)
/*
#define debug_print_array(debug_type, main_fmt, main_arg...) \
debug_virtual_ctx_1(debug_type, "idx={}", thisIndex, main_fmt, ##main_arg)
*/

// #define debug_print_aoth(debug_type, main_fmt, main_arg...) \
// debug_virtual_ctx_1(debug_type, "idx={}", this_index, main_fmt, main_arg)
/*
#define debug_print_aoth(debug_type, main_fmt, main_arg...) \
debug_virtual_ctx_1(debug_type, "idx={}", this_index, main_fmt, main_arg)
*/

#define debug_print_node(debug_type, main_fmt, main_arg...) \
if (debug_argument_option(debug_type) or debug_all_option) { \
Expand All @@ -244,19 +248,23 @@ extern runtime::Runtime* curRT;
) \
}

// debug_virtual_ctx_1( \
// debug_type, \
// "worker={}", print_ctx_comm_worker, \
// main_fmt, main_arg \
// )
/*
debug_virtual_ctx_1( \
debug_type, \
"worker={}", print_ctx_comm_worker, \
main_fmt, main_arg \
)
*/

#define debug_print_unknown(debug_type, main_fmt, main_arg...) \
if (debug_argument_option(debug_type) or debug_all_option) { \
debug_virtual_proc_ctx_none(debug_type, -1, main_fmt, main_arg) \
}

// #define debug_print_pe(debug_type, proc, main_fmt, main_arg...) \
// debug_virtual_proc_ctx_none(debug_type, proc, main_fmt, main_arg)
/*
#define debug_print_pe(debug_type, proc, main_fmt, main_arg...) \
debug_virtual_proc_ctx_none(debug_type, proc, main_fmt, main_arg)
*/

#define debug_print_uid(debug_type, main_fmt, main_arg...) \
debug_virtual_ctx_2( \
Expand Down
6 changes: 4 additions & 2 deletions src/vt/configs/features/features_enableif.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
#define debug_local_options_on(options...) options

// #define debug_resolve_op(option) debug_ ## option(option),
// #define debug_resolve_options(options...) \
// meld_meta_map(meld_map, debug_resolve_op, ##options)
/*
#define debug_resolve_options(options...) \
meld_meta_map(meld_map, debug_resolve_op, ##options)
*/

#define backend_options_on(arg...) arg
#define backend_str_join(tok1,tok2) tok2 ## tok1
Expand Down
7 changes: 4 additions & 3 deletions src/vt/runtime/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,10 @@ void Runtime::printStartupBanner() {
} \
} while (0);

// #define debug_print_force(feature, opt, arg...) \
// debug_print_context(backend_debug, feature, opt, arg)

/*
#define debug_print_force(feature, opt, arg...) \
debug_print_context(backend_debug, feature, opt, arg)
*/

#if !backend_debug_enabled(none)
debug_warn_compile(none)
Expand Down

0 comments on commit ca4f121

Please sign in to comment.