Use debug.h in fileio.c
This commit is contained in:
parent
3841dbac84
commit
1d0fcde45d
@ -36,6 +36,7 @@
|
|||||||
# include <io.h>
|
# include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "debug.h"
|
||||||
#include "mem.h"
|
#include "mem.h"
|
||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
#include "util.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))
|
#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, ...) \
|
#define EXM_THROW(error, ...) \
|
||||||
{ \
|
{ \
|
||||||
DISPLAYLEVEL(1, "zstd: "); \
|
DISPLAYLEVEL(1, "zstd: "); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user