blob: de4f9edf488603834e827e787739db88af2c9f89 [file] [log] [blame]
Richard Smithf4677322015-10-08 20:41:26 +00001// -*- C++ -*-
Louis Dionne9bd93882021-11-17 16:25:01 -05002//===----------------------------------------------------------------------===//
Richard Smithf4677322015-10-08 20:41:26 +00003//
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)
Arthur O'Dwyer6eeaa002022-02-01 20:16:40 -050031# pragma GCC system_header
Richard Smithf4677322015-10-08 20:41:26 +000032#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
Louis Dionne2b1ceaa2021-04-20 12:03:32 -040044#endif // _LIBCPP_SETJMP_H