home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / fortify.lha / ufortify.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-03  |  1.5 KB  |  39 lines

  1. // ufortify.hpp  -  User options for ZFortify.  This is where you configure
  2. // ZFortify's  behaiviour  to  suit  your debugging needs.  Changes to this
  3. // file require ZFortify.cpp to be recompiled, but nothing else.
  4.  
  5. // #define ZFORTIFY_PROVIDE_ARRAY_NEW
  6.  
  7. #define ZFORTIFY_STORAGE
  8.  
  9. #define ZFORTIFY_BEFORE_SIZE      32  // Bytes to allocate before block 
  10. #define ZFORTIFY_BEFORE_VALUE   0xA3  // Fill value before block        
  11.   
  12. #define ZFORTIFY_AFTER_SIZE       32  // Bytes to allocate after block  
  13. #define ZFORTIFY_AFTER_VALUE    0xA5  // Fill value after block         
  14.  
  15. #define FILL_ON_NEW                   // Nuke out malloc'd memory
  16. #define FILL_ON_NEW_VALUE       0xA7  // Value to initialize with
  17.  
  18. #define FILL_ON_DELETE                 // free'd memory is cleared
  19. #define FILL_ON_DELETE_VALUE     0xA9  // Value to de-initialize with
  20.  
  21. // #define CHECK_ALL_MEMORY_ON_NEW
  22. // #define CHECK_ALL_MEMORY_ON_DELETE
  23.  
  24. // #define PARANOID_DELETE
  25.  
  26. #define WARN_ON_NEW_FAIL       // A debug is issued on a failed new
  27. #define WARN_ON_ZERO_NEW       // A debug is issued on a new of a zero byte object
  28. #define WARN_ON_FALSE_FAIL     // See Fortify_SetMallocFailRate()
  29. #define WARN_ON_UNSIGNED_LONG_OVERFLOW // Watch for breaking the 32 bit limit
  30.                                        // because of the size of the fortifications
  31.                                        // (unlikely) 
  32.  
  33. // #define AUTOMATIC_LOG_FILE
  34. // #define LOG_FILENAME            "fortify.log"
  35. // #define FIRST_ERROR_FUNCTION
  36.  
  37. #define ZFORTIFY_LOCK()
  38. #define ZFORTIFY_UNLOCK()
  39.