xref: /freebsd/contrib/libcxxrt/unwind.h (revision 98e0ffaefb0f241cda3a72395d3be04192ae0d47)
194e3ee44SDavid Chisnall /*
294e3ee44SDavid Chisnall  * Copyright 2012 David Chisnall. All rights reserved.
394e3ee44SDavid Chisnall  *
494e3ee44SDavid Chisnall  * Permission is hereby granted, free of charge, to any person obtaining a copy
594e3ee44SDavid Chisnall  * of this software and associated documentation files (the "Software"), to
694e3ee44SDavid Chisnall  * deal in the Software without restriction, including without limitation the
794e3ee44SDavid Chisnall  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
894e3ee44SDavid Chisnall  * sell copies of the Software, and to permit persons to whom the Software is
994e3ee44SDavid Chisnall  * furnished to do so, subject to the following conditions:
1094e3ee44SDavid Chisnall  *
1194e3ee44SDavid Chisnall  * The above copyright notice and this permission notice shall be
1294e3ee44SDavid Chisnall  * included in all copies or substantial portions of the Software.
1394e3ee44SDavid Chisnall  *
1494e3ee44SDavid Chisnall  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1594e3ee44SDavid Chisnall  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1694e3ee44SDavid Chisnall  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1794e3ee44SDavid Chisnall  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1894e3ee44SDavid Chisnall  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1994e3ee44SDavid Chisnall  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2094e3ee44SDavid Chisnall  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2194e3ee44SDavid Chisnall  */
2294e3ee44SDavid 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 
30*f2dc4184SDimitry Andric #if defined(__arm__) && !defined(__ARM_DWARF_EH__)
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