setjmp.h 485 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _SETJMP_H
  2. #define _SETJMP_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <bits/setjmp.h>
  7. typedef unsigned long sigjmp_buf[(1024+sizeof(jmp_buf))/sizeof(long)];
  8. #ifdef _GNU_SOURCE
  9. #define jmp_buf sigjmp_buf
  10. #endif
  11. int setjmp (jmp_buf);
  12. int _setjmp (jmp_buf);
  13. int sigsetjmp (sigjmp_buf, int);
  14. void longjmp (jmp_buf, int);
  15. void _longjmp (jmp_buf, int);
  16. void siglongjmp (sigjmp_buf, int);
  17. #define setjmp setjmp
  18. #define longjmp longjmp
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif