home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C26 / Trace.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-25  |  356 b   |  17 lines

  1. //: C26:Trace.h
  2. // From Thinking in C++, 2nd Edition
  3. // Available at http://www.BruceEckel.com
  4. // (c) Bruce Eckel 1999
  5. // Copyright notice in Copyright.txt
  6. // Creating a trace file
  7. #ifndef TRACE_H
  8. #define TRACE_H
  9. #include <fstream>
  10.  
  11. #ifdef TRACEON
  12. ofstream TRACEFILE__("TRACE.OUT");
  13. #define cout TRACEFILE__
  14. #endif
  15.  
  16. #endif // TRACE_H ///:~
  17.