Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / tools / fuzzing / nyx / NyxWrapper.h
blob0bb6e0fc461d449611e4a9175a38e2cb60a933c7
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_fuzzing_NyxWrapper_h
8 #define mozilla_fuzzing_NyxWrapper_h
10 #include "mozilla/Types.h"
13 * We need this event handler definition both in C and C++ to differentiate
14 * the various flavors of controlled aborts (e.g. MOZ_DIAGNOSTIC_ASSERT
15 * vs. MOZ_RELEASE_ASSERT). Hence we can't use the higher level C++ API
16 * for this and directly redirect to the Nyx event handler in the preloaded
17 * library.
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 MOZ_EXPORT __attribute__((weak)) void nyx_handle_event(const char* type,
24 const char* file,
25 int line,
26 const char* reason);
28 MOZ_EXPORT __attribute__((weak)) void nyx_puts(const char*);
29 #ifdef __cplusplus
31 #endif
33 #endif /* mozilla_fuzzing_NyxWrapper_h */