2015-10-09 04:41:26 +08:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===--------------------------- setjmp.h ---------------------------------===//
|
|
|
|
//
|
2019-01-19 18:56:40 +08:00
|
|
|
// 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
|
2015-10-09 04:41:26 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef _LIBCPP_SETJMP_H
|
|
|
|
#define _LIBCPP_SETJMP_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
setjmp.h synopsis
|
|
|
|
|
|
|
|
Macros:
|
|
|
|
|
|
|
|
setjmp
|
|
|
|
|
|
|
|
Types:
|
|
|
|
|
|
|
|
jmp_buf
|
|
|
|
|
|
|
|
void longjmp(jmp_buf env, int val);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <__config>
|
|
|
|
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2015-10-09 08:26:50 +08:00
|
|
|
#include_next <setjmp.h>
|
|
|
|
|
2015-11-06 14:30:12 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2015-10-09 04:41:26 +08:00
|
|
|
#ifndef setjmp
|
|
|
|
#define setjmp(env) setjmp(env)
|
|
|
|
#endif
|
|
|
|
|
2015-11-06 14:30:12 +08:00
|
|
|
#endif // __cplusplus
|
|
|
|
|
2021-04-21 00:03:32 +08:00
|
|
|
#endif // _LIBCPP_SETJMP_H
|