]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Use debug.h in fileio.c 1190/head
authorNick Terrell <terrelln@fb.com>
Fri, 15 Jun 2018 14:36:54 +0000 (07:36 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 18 Jun 2018 22:51:21 +0000 (15:51 -0700)
programs/fileio.c

index d9e972040ef3ca56bd4f97fee60847fa7370bd25..a7cd295bb62880e5b924eb4f795f09bd7c8c5484 100644 (file)
@@ -36,6 +36,7 @@
 #  include <io.h>
 #endif
 
+#include "debug.h"
 #include "mem.h"
 #include "fileio.h"
 #include "util.h"
@@ -101,21 +102,6 @@ static UTIL_time_t g_displayClock = UTIL_TIME_INITIALIZER;
 #define MIN(a,b)    ((a) < (b) ? (a) : (b))
 
 
-/*-*************************************
-*  Debug
-***************************************/
-#if defined(ZSTD_DEBUG) && (ZSTD_DEBUG>=1)
-#  include <assert.h>
-#else
-#  ifndef assert
-#    define assert(condition) ((void)0)
-#  endif
-#endif
-
-#ifndef ZSTD_DEBUG
-#  define ZSTD_DEBUG 0
-#endif
-#define DEBUGLOG(l,...) if (l<=ZSTD_DEBUG) DISPLAY(__VA_ARGS__);
 #define EXM_THROW(error, ...)                                             \
 {                                                                         \
     DISPLAYLEVEL(1, "zstd: ");                                            \