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
23 MOZ_EXPORT
__attribute__((weak
)) void nyx_handle_event(const char* type
,
28 MOZ_EXPORT
__attribute__((weak
)) void nyx_puts(const char*);
33 #endif /* mozilla_fuzzing_NyxWrapper_h */