xref: /freebsd/contrib/libcxxrt/unwind.h (revision 94e3ee44c3581ff37c5e01b5ffe5eb16d30079a7)
1*94e3ee44SDavid Chisnall /*
2*94e3ee44SDavid Chisnall  * Copyright 2012 David Chisnall. All rights reserved.
3*94e3ee44SDavid Chisnall  *
4*94e3ee44SDavid Chisnall  * Permission is hereby granted, free of charge, to any person obtaining a copy
5*94e3ee44SDavid Chisnall  * of this software and associated documentation files (the "Software"), to
6*94e3ee44SDavid Chisnall  * deal in the Software without restriction, including without limitation the
7*94e3ee44SDavid Chisnall  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8*94e3ee44SDavid Chisnall  * sell copies of the Software, and to permit persons to whom the Software is
9*94e3ee44SDavid Chisnall  * furnished to do so, subject to the following conditions:
10*94e3ee44SDavid Chisnall  *
11*94e3ee44SDavid Chisnall  * The above copyright notice and this permission notice shall be
12*94e3ee44SDavid Chisnall  * included in all copies or substantial portions of the Software.
13*94e3ee44SDavid Chisnall  *
14*94e3ee44SDavid Chisnall  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15*94e3ee44SDavid Chisnall  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16*94e3ee44SDavid Chisnall  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17*94e3ee44SDavid Chisnall  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18*94e3ee44SDavid Chisnall  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19*94e3ee44SDavid Chisnall  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20*94e3ee44SDavid Chisnall  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21*94e3ee44SDavid Chisnall  */
22*94e3ee44SDavid Chisnall 
237a984708SDavid Chisnall #ifndef UNWIND_H_INCLUDED
247a984708SDavid Chisnall #define UNWIND_H_INCLUDED
257a984708SDavid Chisnall 
267a984708SDavid Chisnall #ifdef __cplusplus
277a984708SDavid Chisnall extern "C" {
287a984708SDavid Chisnall #endif
297a984708SDavid Chisnall 
307a984708SDavid Chisnall #ifdef __arm__
317a984708SDavid Chisnall #include "unwind-arm.h"
327a984708SDavid Chisnall #else
337a984708SDavid Chisnall #include "unwind-itanium.h"
347a984708SDavid Chisnall #endif
357a984708SDavid Chisnall 
367a984708SDavid Chisnall #ifdef __cplusplus
377a984708SDavid Chisnall }
387a984708SDavid Chisnall #endif
397a984708SDavid Chisnall 
407a984708SDavid Chisnall #endif
41