| //===- FuzzerExtFunctions.h - Interface to external functions ---*- C++ -* ===// | |
| // | |
| // The LLVM Compiler Infrastructure | |
| // | |
| // This file is distributed under the University of Illinois Open Source | |
| // License. See LICENSE.TXT for details. | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // Defines an interface to (possibly optional) functions. | |
| //===----------------------------------------------------------------------===// | |
| namespace fuzzer { | |
| struct ExternalFunctions { | |
| // Initialize function pointers. Functions that are not available will be set | |
| // to nullptr. Do not call this constructor before ``main()`` has been | |
| // entered. | |
| ExternalFunctions(); | |
| }; | |
| } // namespace fuzzer | |