home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Frameworks / MADE 1.0.1 / Essential Settings.h < prev    next >
Encoding:
Text File  |  1997-06-04  |  2.9 KB  |  60 lines  |  [TEXT/CWIE]

  1. // MADE - Macintosh Application Development Essentials
  2. // ---------------------------------------------------
  3.  
  4. // (c) Gideon Greenspan, Sig Software - June 1997 - http://www.kagi.com/gdg/
  5.  
  6. // These files can only be used for experimental standalone purposes. To obtain
  7. // fully commented code, and licenses for standalone, shareware, internal and
  8. // commercial usage, run the enclosed Register application.
  9.  
  10. // Essential Settings.h
  11. //
  12. // A header file containing all the necessary settings for the MADE package.
  13. //
  14. // Version 1.0.0 - 10th November 1996
  15. // Version 1.0.1 - 4th June 1997
  16. //                 Fixed macro, function names
  17.  
  18. #define        Project_Under_Development        true
  19.                 // Controls all assertions. If true, any Assert statement will be checked,
  20.                 // and if they fail a dialog box with several options will be displayed.
  21.                 // If false, Assert statements are ignored, and next 3 options don't matter.
  22. #define        Initialise_Allocated_Memory            true
  23.                 // Overwrites memory before and after use with OxAA bytes. This is extremely
  24.                 // useful for eliminating intermittent errors where non-initialised memory is
  25.                 // used. Now you'll always get an error, and will be able to spot the 0xAA
  26.                 // values. Used in AllocPtr, AllocHandle, DestroyPtr, DestroyHandle.
  27. #define        Assert_Memory_Locking            true
  28.                 // Ensures status is changed when locking or unlocking handles. This is useful
  29.                 // where you might have one function inside another which passes it a handle.
  30.                 // If both outer and inner functions lock and unlock the handle, there will
  31.                 // be a point where the outer functions expects the handle to be locked, but
  32.                 // it will have been unlocked. Used in LockHandle, UnlockHandle.
  33. #define        Move_On_Handle_Allocation        true
  34.                 // Moves memory around whenever a handle is allocate. This helps identify
  35.                 // intermittent dangling-pointer errors where the referred block has been
  36.                 // moved elsewhere, but some code still expects it to be in the same place.
  37.                 // Now such code will almost always fail, instead of just when memory is
  38.                 // tight. Used in AllocHandle only.
  39.  
  40. #define        Use_AppleEvents                    true
  41.                 // Brings in code to deal with AppleEvents
  42. #define        Insist_On_AppleEvent_Support    true
  43.                 // Complains then quits if no AppleEvent manager
  44. #define        Handle_Open_Documents_Event        true
  45.                 // Creates and installs handler for Open Documents event
  46. #define        Handle_Print_Documents_Event    true
  47.                 // Creates and installs handler for Print Documents event
  48. #define        Handle_Quit_Application_Event    true
  49.                 // Creates and installs handler for Quit Application event
  50.  
  51. #define        Use_Drag_Manager                true
  52.                 // Brings in code to deal with Drag receiving and tracking
  53. #define        Insist_On_Drag_Manager_Support    true
  54.                 // Complains then quits if no drag manager
  55.  
  56. #define        Emergency_Memory_Reserve        16384
  57.                 // Number of bytes to reserve for error handling
  58. #define        Event_Sleep_Time                6
  59.                 // Number of 'ticks' to give background processes at idle time
  60.