home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Games / Pentominoes 2.0 / Shell ƒ / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-15  |  652 b   |  37 lines  |  [TEXT/MMCC]

  1. #ifndef __MY_ERROR_LAYER_H__
  2. #define __MY_ERROR_LAYER_H__
  3.  
  4. #include "program globals.h"
  5. #include <Notification.h>
  6.  
  7. #if PRAGMA_ALIGN_SUPPORTED
  8. #pragma options align=mac68k
  9. #endif
  10. struct ErrorStateRec
  11. {
  12.     Boolean            isFatal;
  13.     Boolean            isSmall;
  14.     NMRec            notificationRec;
  15.     ErrorTypes        resultCode;
  16. };
  17. #if PRAGMA_ALIGN_SUPPORTED
  18. #pragma options align=reset
  19. #endif
  20.  
  21. typedef struct ErrorStateRec    ErrorStateRec;
  22.  
  23. extern    ErrorStateRec        gPendingErrorRec;
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. extern    void FailNilUPP(UniversalProcPtr theUPP);
  30. extern    void HandleError(ErrorTypes resultCode, Boolean isFatal, Boolean isSmall);
  31.  
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35.  
  36. #endif
  37.