blob: 464b4a54089720788cb0e7b11229a9afa595eed1 [file] [log] [blame]
Richard Smithddbf0812015-10-08 20:41:26 +00001// -*- C++ -*-
2//===--------------------------- setjmp.h ---------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_SETJMP_H
12#define _LIBCPP_SETJMP_H
13
14/*
15 setjmp.h synopsis
16
17Macros:
18
19 setjmp
20
21Types:
22
23 jmp_buf
24
25void longjmp(jmp_buf env, int val);
26
27*/
28
29#include <__config>
Richard Smithddbf0812015-10-08 20:41:26 +000030
31#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
32#pragma GCC system_header
33#endif
34
Richard Smith45bae0b2015-10-09 00:26:50 +000035#include_next <setjmp.h>
36
Eric Fiselier38e7a302015-11-06 06:30:12 +000037#ifdef __cplusplus
38
Richard Smithddbf0812015-10-08 20:41:26 +000039#ifndef setjmp
40#define setjmp(env) setjmp(env)
41#endif
42
Eric Fiselier38e7a302015-11-06 06:30:12 +000043#endif // __cplusplus
44
Richard Smithddbf0812015-10-08 20:41:26 +000045#endif // _LIBCPP_SETJMP_H