Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
595 B

  1. //
  2. // TRC.C
  3. // Debug tracing utilities
  4. //
  5. // Copyright(c) Microsoft 1997-
  6. //
  7. #include <as16.h>
  8. #ifdef _DEBUG
  9. // Set g_trcConfig to ZONE_FUNCTION in the debugger to get fn tracing on
  10. //
  11. // DbgZPrintFn()
  12. // DbgZPrintFnExitDWORD()
  13. //
  14. // This prints out strings for function tracing
  15. //
  16. void DbgZPrintFn(LPSTR szFn)
  17. {
  18. if (g_trcConfig & ZONE_FUNCTION)
  19. {
  20. WARNING_OUT(("%s", szFn));
  21. }
  22. }
  23. void DbgZPrintFnExitDWORD(LPSTR szFn, DWORD dwResult)
  24. {
  25. if (g_trcConfig & ZONE_FUNCTION)
  26. {
  27. WARNING_OUT(("%s, RETURN %08lx", szFn, dwResult));
  28. }
  29. }
  30. #endif // DEBUG