mirror of https://gitee.com/bigwinds/arangodb
Don't define NDEBUG - this does fancy stuff to assertions.
This commit is contained in:
parent
6efb11c922
commit
d04fc6ee3a
|
@ -33,17 +33,11 @@
|
||||||
|
|
||||||
// debug mode
|
// debug mode
|
||||||
#ifdef VELOCYPACK_DEBUG
|
#ifdef VELOCYPACK_DEBUG
|
||||||
#ifndef DEBUG
|
|
||||||
#define DEBUG
|
|
||||||
#endif
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#define VELOCYPACK_ASSERT(x) assert(x)
|
#define VELOCYPACK_ASSERT(x) assert(x)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#define NDEBUG
|
|
||||||
#endif
|
|
||||||
#define VELOCYPACK_ASSERT(x)
|
#define VELOCYPACK_ASSERT(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue