Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame^] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- csetjmp ----------------------------------===// |
| 3 | // |
| 4 | // ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is distributed under the University of Illinois Open Source |
| 7 | // License. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CSETJMP |
| 12 | #define _LIBCPP_CSETJMP |
| 13 | |
| 14 | /* |
| 15 | csetjmp synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | setjmp |
| 20 | |
| 21 | namespace std |
| 22 | { |
| 23 | |
| 24 | Types: |
| 25 | |
| 26 | jmp_buf |
| 27 | |
| 28 | void longjmp(jmp_buf env, int val); |
| 29 | |
| 30 | } // std |
| 31 | |
| 32 | */ |
| 33 | |
| 34 | #include <__config> |
| 35 | #include <setjmp.h> |
| 36 | |
| 37 | #pragma GCC system_header |
| 38 | |
| 39 | #ifndef setjmp |
| 40 | #define setjmp(env) setjmp(env) |
| 41 | #endif |
| 42 | |
| 43 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 44 | |
| 45 | using ::jmp_buf; |
| 46 | using ::longjmp; |
| 47 | |
| 48 | _LIBCPP_END_NAMESPACE_STD |
| 49 | |
| 50 | #endif // _LIBCPP_CSETJMP |