setjmp.h 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // -*- C++ -*-
  2. //===----------------------------------------------------------------------===//
  3. //
  4. // 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
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _LIBCPP_SETJMP_H
  10. #define _LIBCPP_SETJMP_H
  11. /*
  12. setjmp.h synopsis
  13. Macros:
  14. setjmp
  15. Types:
  16. jmp_buf
  17. void longjmp(jmp_buf env, int val);
  18. */
  19. #include <__config>
  20. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  21. # pragma GCC system_header
  22. #endif
  23. #include_next <setjmp.h>
  24. #ifdef __cplusplus
  25. #ifndef setjmp
  26. #define setjmp(env) setjmp(env)
  27. #endif
  28. #endif // __cplusplus
  29. #endif // _LIBCPP_SETJMP_H