xref: /netbsd-src/external/bsd/libc++/dist/libcxxrt/src/unwind.h (revision 534cb174a5e7bd0fcb0875bcf40839ba6bc3bca2)
1ccec91a1Sjoerg /*
2ccec91a1Sjoerg  * Copyright 2012 David Chisnall. All rights reserved.
3ccec91a1Sjoerg  *
4ccec91a1Sjoerg  * Permission is hereby granted, free of charge, to any person obtaining a copy
5ccec91a1Sjoerg  * of this software and associated documentation files (the "Software"), to
6ccec91a1Sjoerg  * deal in the Software without restriction, including without limitation the
7ccec91a1Sjoerg  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8ccec91a1Sjoerg  * sell copies of the Software, and to permit persons to whom the Software is
9ccec91a1Sjoerg  * furnished to do so, subject to the following conditions:
10ccec91a1Sjoerg  *
11ccec91a1Sjoerg  * The above copyright notice and this permission notice shall be
12ccec91a1Sjoerg  * included in all copies or substantial portions of the Software.
13ccec91a1Sjoerg  *
14ccec91a1Sjoerg  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15ccec91a1Sjoerg  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16ccec91a1Sjoerg  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17ccec91a1Sjoerg  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18ccec91a1Sjoerg  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19ccec91a1Sjoerg  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20ccec91a1Sjoerg  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21ccec91a1Sjoerg  */
22ccec91a1Sjoerg 
23ccec91a1Sjoerg #ifndef UNWIND_H_INCLUDED
24ccec91a1Sjoerg #define UNWIND_H_INCLUDED
25ccec91a1Sjoerg 
26ccec91a1Sjoerg #ifdef __cplusplus
27ccec91a1Sjoerg extern "C" {
28ccec91a1Sjoerg #endif
29ccec91a1Sjoerg 
30*534cb174Sjoerg #if defined(__arm__) && !defined(__ARM_DWARF_EH__)
31ccec91a1Sjoerg #include "unwind-arm.h"
32ccec91a1Sjoerg #else
33ccec91a1Sjoerg #include "unwind-itanium.h"
34ccec91a1Sjoerg #endif
35ccec91a1Sjoerg 
36ccec91a1Sjoerg #ifdef __cplusplus
37ccec91a1Sjoerg }
38ccec91a1Sjoerg #endif
39ccec91a1Sjoerg 
40ccec91a1Sjoerg #endif
41