Loading lib_com/ivas_error_utils.h +2 −11 Original line number Diff line number Diff line Loading @@ -42,11 +42,6 @@ #include "ivas_error.h" #ifdef DEBUGGING #define IVAS_ERRORS_PRINT_DETAIL #endif // #define IVAS_ERRORS_ASSERT_ON_ERROR #ifdef IVAS_ERRORS_PRINT_DETAIL #include <stdio.h> #endif Loading @@ -71,13 +66,13 @@ * If unexpected values are printed or the macro causes a crash, double check that the * format specifiers are correct. */ #ifdef IVAS_ERRORS_PRINT_DETAIL #ifdef DEBUGGING #define IVAS_ERROR( error_code, ... ) ivas_error_wrapper( error_code, __func__, __FILE__, __LINE__, __VA_ARGS__ ) #else #define IVAS_ERROR( error_code, ... ) ivas_error_wrapper( error_code ) #endif #ifdef IVAS_ERRORS_PRINT_DETAIL #ifdef DEBUGGING static inline ivas_error ivas_error_wrapper( const ivas_error error_code, const char *function, const char *file, int32_t line, const char *description, ... ) { fprintf( stderr, "\n%s: ", ivas_error_to_string( error_code ) ); Loading @@ -89,10 +84,6 @@ static inline ivas_error ivas_error_wrapper( const ivas_error error_code, const fprintf( stderr, "\n\nIn function: %s(), %s:%d\n\n", function, file, line ); #ifdef IVAS_ERRORS_ASSERT_ON_ERROR assert( 0 ); #endif return error_code; } #else Loading Loading
lib_com/ivas_error_utils.h +2 −11 Original line number Diff line number Diff line Loading @@ -42,11 +42,6 @@ #include "ivas_error.h" #ifdef DEBUGGING #define IVAS_ERRORS_PRINT_DETAIL #endif // #define IVAS_ERRORS_ASSERT_ON_ERROR #ifdef IVAS_ERRORS_PRINT_DETAIL #include <stdio.h> #endif Loading @@ -71,13 +66,13 @@ * If unexpected values are printed or the macro causes a crash, double check that the * format specifiers are correct. */ #ifdef IVAS_ERRORS_PRINT_DETAIL #ifdef DEBUGGING #define IVAS_ERROR( error_code, ... ) ivas_error_wrapper( error_code, __func__, __FILE__, __LINE__, __VA_ARGS__ ) #else #define IVAS_ERROR( error_code, ... ) ivas_error_wrapper( error_code ) #endif #ifdef IVAS_ERRORS_PRINT_DETAIL #ifdef DEBUGGING static inline ivas_error ivas_error_wrapper( const ivas_error error_code, const char *function, const char *file, int32_t line, const char *description, ... ) { fprintf( stderr, "\n%s: ", ivas_error_to_string( error_code ) ); Loading @@ -89,10 +84,6 @@ static inline ivas_error ivas_error_wrapper( const ivas_error error_code, const fprintf( stderr, "\n\nIn function: %s(), %s:%d\n\n", function, file, line ); #ifdef IVAS_ERRORS_ASSERT_ON_ERROR assert( 0 ); #endif return error_code; } #else Loading