From 1d0fcde45d9833a318f88af8608f4612e1e4c7b9 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Fri, 15 Jun 2018 07:36:54 -0700 Subject: [PATCH] Use debug.h in fileio.c --- programs/fileio.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index d9e97204..a7cd295b 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -36,6 +36,7 @@ # include #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 -#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: "); \