blob: d429c8624f2e0d460b93a11bef6b3f3d2697f386 [file] [log] [blame]
Richard Smithf4677322015-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>
30#include_next <setjmp.h>
31
32#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
33#pragma GCC system_header
34#endif
35
36#ifndef setjmp
37#define setjmp(env) setjmp(env)
38#endif
39
40#endif // _LIBCPP_SETJMP_H