Define a no op assert if we detect NDEBUG (#861)

Addresses #642
This commit is contained in:
Michael Grunder 2020-07-31 13:23:28 -07:00 committed by GitHub
parent ea063b7cc8
commit 5003906d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,11 @@
#include "async_private.h"
#ifdef NDEBUG
#undef assert
#define assert(e) (void)(e)
#endif
/* Forward declarations of hiredis.c functions */
int __redisAppendCommand(redisContext *c, const char *cmd, size_t len);
void __redisSetError(redisContext *c, int type, const char *str);