X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Ferror.h;h=06222a06f03050fd4c16cdd798a01ec2561ed1c1;hb=4fb86d6254e7be4da455fa9da0f1032621bb3c96;hp=9657eda8ad457c631957dbecb1e860b7f8d91049;hpb=e61f93d517a76c23a3bfc2fdbd32fa190fbbc286;p=wimlib diff --git a/include/wimlib/error.h b/include/wimlib/error.h index 9657eda8..06222a06 100644 --- a/include/wimlib/error.h +++ b/include/wimlib/error.h @@ -1,12 +1,12 @@ #ifndef _WIMLIB_ERROR_H #define _WIMLIB_ERROR_H +#include + #include "wimlib.h" /* Get error code definitions */ #include "wimlib/compiler.h" #include "wimlib/types.h" -#include - static inline int _format_attribute(printf, 1, 2) dummy_tprintf(const tchar *format, ...) { @@ -44,24 +44,7 @@ extern FILE *wimlib_error_file; # define WARNING_WITH_ERRNO(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) #endif /* !ENABLE_ERROR_MESSAGES */ -#if defined(ENABLE_MORE_DEBUG) && !defined(ENABLE_DEBUG) -# define ENABLE_DEBUG 1 -#endif - -#if defined(ENABLE_MORE_ASSERTIONS) && !defined(ENABLE_ASSERTIONS) -# define ENABLE_ASSERTIONS 1 -#endif - - -#ifdef ENABLE_DEBUG extern void -wimlib_debug(const tchar *file, int line, const char *func, - const tchar *format, ...); -# define DEBUG(format, ...) \ - wimlib_debug(T(__FILE__), __LINE__, __func__, T(format), ## __VA_ARGS__) - -#else -# define DEBUG(format, ...) dummy_tprintf(T(format), ## __VA_ARGS__) -#endif /* !ENABLE_DEBUG */ +print_byte_field(const u8 *field, size_t len, FILE *out); #endif /* _WIMLIB_ERROR_H */