1 //===----------------------------- config.h -------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //
9 //  Defines macros used within the libc++abi project.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 
14 #ifndef LIBCXXABI_CONFIG_H
15 #define LIBCXXABI_CONFIG_H
16 
17 #include <unistd.h>
18 
19 // Set this in the CXXFLAGS when you need it, because otherwise we'd have to
20 // #if !defined(__linux__) && !defined(__APPLE__) && ...
21 // and so-on for *every* platform.
22 #ifndef LIBCXXABI_BAREMETAL
23 #  define LIBCXXABI_BAREMETAL 0
24 #endif
25 
26 // The default terminate handler attempts to demangle uncaught exceptions, which
27 // causes extra I/O and demangling code to be pulled in.
28 // Set this to make the terminate handler default to a silent alternative.
29 #ifndef LIBCXXABI_SILENT_TERMINATE
30 #  define LIBCXXABI_SILENT_TERMINATE 0
31 #endif
32 
33 #endif // LIBCXXABI_CONFIG_H
34