home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INTERNET / WWW / LYNX / SOURCE / SRC0_8A.ZIP / DOSLYNX / INC / TRACE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  705 b   |  28 lines

  1. #ifndef RELEASE
  2. #ifndef __TRACE_H
  3. //    Avoid include redundancy
  4. #define __TRACE_H
  5.  
  6. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  7. //
  8. //    Include File:    trace.h
  9. //    Purpose:    Provide non debugging code tracing.
  10. //    Remarks/Portability/Dependencies/Restrictions:
  11. //    Revision History:
  12. //        01-25-94    recreated
  13. //                previously deleted since believed causing
  14. //                exe errors.  real bug found, now
  15. //                reimplementing.
  16. //        08-09-94    Made sure this macro doesn't depend upon TC
  17.  
  18. #include"tcapture.h"
  19.  
  20. #define trace(message) {\
  21.     if(::TC != NULL && c_trace)    {\
  22.         cout << __FILE__ << ':' << __LINE__ << ": " << message <<\
  23.             '\n';\
  24.     }\
  25. }
  26.  
  27. #endif // __TRACE_H
  28. #endif // RELEASE