Also check asserts in fuzzing
This commit is contained in:
parent
0ab961de52
commit
a73e70c8f4
@ -34,6 +34,10 @@
|
|||||||
#define FLAC__ASSERT_H
|
#define FLAC__ASSERT_H
|
||||||
|
|
||||||
/* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */
|
/* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */
|
||||||
|
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||||
|
#define FLAC__ASSERT(x) if(!(x)) __builtin_abort();
|
||||||
|
#define FLAC__ASSERT_DECLARATION(x) x
|
||||||
|
#else
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#define FLAC__ASSERT(x) assert(x)
|
#define FLAC__ASSERT(x) assert(x)
|
||||||
@ -42,5 +46,6 @@
|
|||||||
#define FLAC__ASSERT(x)
|
#define FLAC__ASSERT(x)
|
||||||
#define FLAC__ASSERT_DECLARATION(x)
|
#define FLAC__ASSERT_DECLARATION(x)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user