home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWExcLib / Sources / FWBreakC.cpp < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.6 KB  |  54 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWBreakC.cpp
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef   FWFWEAKC_H
  13. #include "FWBreakC.h"
  14. #endif
  15.  
  16. #ifndef   FWEXCRUN_H
  17. #include "FWExcRun.h"
  18. #endif
  19.  
  20. #ifndef FWEXCDEF_H
  21. #include "FWExcDef.h"
  22. #endif
  23.  
  24. #ifdef FW_BUILD_MAC
  25. #pragma segment BEL
  26. #endif
  27.  
  28. //========================================================================================
  29. // CLASS FW_CExceptionBreakContext
  30. //========================================================================================
  31.  
  32. //----------------------------------------------------------------------------------------
  33. // FW_CExceptionBreakContext::FW_CExceptionBreakContext
  34. //----------------------------------------------------------------------------------------
  35. #ifdef FW_DEBUG
  36. FW_CExceptionBreakContext::FW_CExceptionBreakContext(FW_ClassReference breakExceptionKind) :
  37.     fLastBreakExceptionKind(_FW_CExceptionRuntime::SetBreakOnThrow(breakExceptionKind))
  38. {
  39.     FW_END_CONSTRUCTOR
  40. }
  41. #endif
  42.  
  43. //----------------------------------------------------------------------------------------
  44. // FW_CExceptionBreakContext::~FW_CExceptionBreakContext
  45. //----------------------------------------------------------------------------------------
  46. #ifdef FW_DEBUG
  47. FW_CExceptionBreakContext::~FW_CExceptionBreakContext()
  48. {
  49.     FW_START_DESTRUCTOR
  50.     _FW_CExceptionRuntime::SetBreakOnThrow(fLastBreakExceptionKind);
  51. }
  52. #endif
  53.  
  54.