diff options
Diffstat (limited to 'gnu/llvm/libcxx/include/csetjmp')
-rw-r--r-- | gnu/llvm/libcxx/include/csetjmp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/llvm/libcxx/include/csetjmp b/gnu/llvm/libcxx/include/csetjmp new file mode 100644 index 00000000000..ed94b50d161 --- /dev/null +++ b/gnu/llvm/libcxx/include/csetjmp @@ -0,0 +1,47 @@ +// -*- C++ -*- +//===--------------------------- csetjmp ----------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef _LIBCPP_CSETJMP +#define _LIBCPP_CSETJMP + +/* + csetjmp synopsis + +Macros: + + setjmp + +namespace std +{ + +Types: + + jmp_buf + +void longjmp(jmp_buf env, int val); + +} // std + +*/ + +#include <__config> +#include <setjmp.h> + +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +#pragma GCC system_header +#endif + +_LIBCPP_BEGIN_NAMESPACE_STD + +using ::jmp_buf; +using ::longjmp; + +_LIBCPP_END_NAMESPACE_STD + +#endif // _LIBCPP_CSETJMP |