mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 13:45:06 +00:00
[fuzzer] Add monster_debug target (#6513)
Add the `monster_debug` target for better troubleshooting. Improve oss-fuzz logs.
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
#ifndef FUZZER_ASSERT_IMPL_H_
|
||||
#define FUZZER_ASSERT_IMPL_H_
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
extern "C" void __debugbreak();
|
||||
#define __builtin_trap __debugbreak
|
||||
#else // Clang
|
||||
extern "C" void __builtin_trap(void);
|
||||
#endif
|
||||
|
||||
// Declare Debug/Release independed assert macro.
|
||||
#define fuzzer_assert_impl(x) (!!(x) ? static_cast<void>(0) : __builtin_trap())
|
||||
|
||||
extern "C" void __builtin_trap(void);
|
||||
|
||||
#endif // !FUZZER_ASSERT_IMPL_H_
|
||||
|
||||
Reference in New Issue
Block a user