home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / debug / trace / trace.cpp < prev   
Text File  |  1996-10-29  |  598b  |  25 lines

  1. //************************************************************
  2. // Problem Determination - Simple Trace Example
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  6. // All Rights Reserved.
  7. //************************************************************
  8. #include <itrace.hpp>
  9. #include <istring.hpp>
  10.  
  11. int foo(unsigned long count);
  12.  
  13. void main()
  14. {
  15.    IMODTRACE_DEVELOP("main");
  16.    foo(10);
  17. }
  18.  
  19. int foo(unsigned long count)
  20. {
  21.   IFUNCTRACE_DEVELOP();
  22.   ITRACE_DEVELOP(IString("The count is ")+IString(count).d2x());
  23.   return 0;
  24. }
  25.