setjumph.inc 920 B

1234567891011121314151617181920212223242526272829
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2008 by the Free Pascal development team.
  4. SetJmp/Longjmp declarations
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. type
  12. jmp_buf = packed record
  13. r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r28,r29,splo,sphi,pclo,pchi : byte;
  14. {$ifdef CPUAVR_3_BYTE_PC}
  15. pchighest : byte
  16. {$endif CPUAVR_3_BYTE_PC}
  17. end;
  18. pjmp_buf = ^jmp_buf;
  19. function setjmp(var S : jmp_buf) : shortint;[external name 'FPC_SETJMP'];
  20. procedure longjmp(var S : jmp_buf;value : shortint);[external name 'FPC_LONGJMP'];