Richard Smith | ddbf081 | 2015-10-08 20:41:26 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- setjmp.h ---------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_SETJMP_H |
| 12 | #define _LIBCPP_SETJMP_H |
| 13 | |
| 14 | /* |
| 15 | setjmp.h synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | setjmp |
| 20 | |
| 21 | Types: |
| 22 | |
| 23 | jmp_buf |
| 24 | |
| 25 | void longjmp(jmp_buf env, int val); |
| 26 | |
| 27 | */ |
| 28 | |
| 29 | #include <__config> |
Richard Smith | ddbf081 | 2015-10-08 20:41:26 +0000 | [diff] [blame] | 30 | |
| 31 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 32 | #pragma GCC system_header |
| 33 | #endif |
| 34 | |
Richard Smith | 45bae0b | 2015-10-09 00:26:50 +0000 | [diff] [blame] | 35 | #include_next <setjmp.h> |
| 36 | |
Eric Fiselier | 38e7a30 | 2015-11-06 06:30:12 +0000 | [diff] [blame] | 37 | #ifdef __cplusplus |
| 38 | |
Richard Smith | ddbf081 | 2015-10-08 20:41:26 +0000 | [diff] [blame] | 39 | #ifndef setjmp |
| 40 | #define setjmp(env) setjmp(env) |
| 41 | #endif |
| 42 | |
Eric Fiselier | 38e7a30 | 2015-11-06 06:30:12 +0000 | [diff] [blame] | 43 | #endif // __cplusplus |
| 44 | |
Richard Smith | ddbf081 | 2015-10-08 20:41:26 +0000 | [diff] [blame] | 45 | #endif // _LIBCPP_SETJMP_H |