...

Text file src/github.com/google/flatbuffers/tests/fuzzer/fuzzer_assert.h

Documentation: github.com/google/flatbuffers/tests/fuzzer

     1#ifndef FUZZER_ASSERT_IMPL_H_
     2#define FUZZER_ASSERT_IMPL_H_
     3
     4#if defined(_MSC_VER)
     5extern "C" void __debugbreak();
     6#define __builtin_trap __debugbreak
     7#else // Clang
     8extern "C" void __builtin_trap(void);
     9#endif
    10
    11// Declare Debug/Release independed assert macro.
    12#define fuzzer_assert_impl(x) (!!(x) ? static_cast<void>(0) : __builtin_trap())
    13
    14#endif // !FUZZER_ASSERT_IMPL_H_

View as plain text