1// -*- 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 31#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 32#pragma GCC system_header 33#endif 34 35#include_next <setjmp.h> 36 37#ifdef __cplusplus 38 39#ifndef setjmp 40#define setjmp(env) setjmp(env) 41#endif 42 43#endif // __cplusplus 44 45#endif // _LIBCPP_SETJMP_H 46