Closed zasdfgbnm closed 1 year ago
Looks useful. How about using a macro to provide a function name automatically?
E.g.,
#define DEBUG_PRINT_SCOPE(...) DebugPrintScope _debug_print_scope(__func__, _VA_ARGS_)
define DEBUG_PRINT_SCOPE(...) DebugPrintScope _debug_print_scope(func, _VAARGS)
Good suggestion! Added
Example usage: