30#define MIN(a, b) ((a) < (b) ? (a) : (b))
31#define MAX(a, b) ((a) > (b) ? (a) : (b))
33#define FUZZ_QUOTE_IMPL(str) #str
34#define FUZZ_QUOTE(str) FUZZ_QUOTE_IMPL(str)
39#define FUZZ_ASSERT_MSG(cond, msg) \
41 : (fprintf(stderr, "%s: %u: Assertion: `%s' failed. %s\n", __FILE__, \
42 __LINE__, FUZZ_QUOTE(cond), (msg)), \
44#define FUZZ_ASSERT(cond) FUZZ_ASSERT_MSG((cond), "");
45#define FUZZ_ZASSERT(code) \
46 FUZZ_ASSERT_MSG(!ZSTD_isError(code), ZSTD_getErrorName(code))
49#define FUZZ_STATIC static __inline __attribute__((unused))
50#elif defined(__cplusplus) || \
51 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
52#define FUZZ_STATIC static inline
53#elif defined(_MSC_VER)
54#define FUZZ_STATIC static __inline
56#define FUZZ_STATIC static
int FUZZ_memcmp(void const *lhs, void const *rhs, size_t size)
Definition fuzz_helpers.c:26
void * FUZZ_malloc(size_t size)
Definition fuzz_helpers.c:16