blob: f30a8d401d1a77ae65a3d9a8e12921b2982f195b [file] [log] [blame]
Richard Smithf4677322015-10-08 20:41:26 +00001// -*- C++ -*-
2//===--------------------------- setjmp.h ---------------------------------===//
3//
Chandler Carruthd2012102019-01-19 10:56:40 +00004// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Richard Smithf4677322015-10-08 20:41:26 +00007//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_SETJMP_H
11#define _LIBCPP_SETJMP_H
12
13/*
14 setjmp.h synopsis
15
16Macros:
17
18 setjmp
19
20Types:
21
22 jmp_buf
23
24void longjmp(jmp_buf env, int val);
25
26*/
27
28#include <__config>
Richard Smithf4677322015-10-08 20:41:26 +000029
30#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
31#pragma GCC system_header
32#endif
33
Richard Smith523b1722015-10-09 00:26:50 +000034#include_next <setjmp.h>
35
Eric Fiseliera80af822015-11-06 06:30:12 +000036#ifdef __cplusplus
37
Richard Smithf4677322015-10-08 20:41:26 +000038#ifndef setjmp
39#define setjmp(env) setjmp(env)
40#endif
41
Eric Fiseliera80af822015-11-06 06:30:12 +000042#endif // __cplusplus
43
Richard Smithf4677322015-10-08 20:41:26 +000044#endif // _LIBCPP_SETJMP_H