From 0b5d87b8a33a0350e9a8b7c2ca89070981c13d32 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 16 Nov 2020 22:43:42 -0600 Subject: [PATCH] Update: add "DEBUG: " support to the common errors. --- level_2/fll_error/c/error-common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/level_2/fll_error/c/error-common.h b/level_2/fll_error/c/error-common.h index 7700b34..07c47d2 100644 --- a/level_2/fll_error/c/error-common.h +++ b/level_2/fll_error/c/error-common.h @@ -45,9 +45,11 @@ extern "C" { * notable: The color codes for a part of the message to make more visible. */ #ifndef _di_fll_error_print_t_ + #define fll_error_print_debug "DEBUG: " #define fll_error_print_error "ERROR: " #define fll_error_print_warning "WARNING: " + #define fll_error_print_debug_length 7 #define fll_error_print_error_length 7 #define fll_error_print_warning_length 9 @@ -70,6 +72,8 @@ extern "C" { } #define fll_macro_error_print_t_initialize(to, verbosity, prefix, context, notable) { to, verbosity, prefix, context, notable } + #define fll_macro_error_print_t_initialize_debug() fll_macro_error_print_t_initialize(f_macro_file_t_initialize(f_type_debug, f_type_descriptor_debug, f_file_flag_write_only), f_console_verbosity_normal, fll_error_print_debug, f_color_set_t_initialize, f_color_set_t_initialize) + #define fll_macro_error_print_t_initialize_warning() fll_macro_error_print_t_initialize(f_macro_file_t_initialize(f_type_warn, f_type_descriptor_warning, f_file_flag_write_only), f_console_verbosity_normal, fll_error_print_warning, f_color_set_t_initialize, f_color_set_t_initialize) #endif // _di_fll_error_print_t_ #ifdef __cplusplus -- 1.8.3.1