• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef FUZZER_ASSERT_IMPL_H_
2 #define FUZZER_ASSERT_IMPL_H_
3 
4 #if defined(_MSC_VER)
5 extern "C" void __debugbreak();
6 #define __builtin_trap __debugbreak
7 #else // Clang
8 extern "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_
15