2
0

excepth.inc 960 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Michael Van Canneyt
  4. member of the Free Pascal development team
  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. Const
  12. { Type of exception. Currently only one. }
  13. FPC_EXCEPTION = 1;
  14. { types of frames for the exception address stack }
  15. cExceptionFrame = 1;
  16. cFinalizeFrame = 2;
  17. Type
  18. PExceptAddr = ^TExceptAddr;
  19. TExceptAddr = record
  20. buf : pjmp_buf;
  21. next : PExceptAddr;
  22. {$ifdef CPU16}
  23. frametype : Smallint;
  24. {$else CPU16}
  25. frametype : Longint;
  26. {$endif CPU16}
  27. end;
  28. Const
  29. CatchAllExceptions = PtrInt(-1);