]> Kevux Git Server - fll/commitdiff
Update: add "DEBUG: " support to the common errors.
authorKevin Day <thekevinday@gmail.com>
Tue, 17 Nov 2020 04:43:42 +0000 (22:43 -0600)
committerKevin Day <thekevinday@gmail.com>
Tue, 17 Nov 2020 04:43:42 +0000 (22:43 -0600)
level_2/fll_error/c/error-common.h

index 7700b342b39297b33023964e8f70834fe922d88f..07c47d2923cee7f428fdf9e0909fae0de49a8d54 100644 (file)
@@ -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