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.

33 lines
676 B

  1. #ifndef __ConfAtltrace_h__
  2. #define __ConfAtltrace_h__
  3. #ifdef _DEBUG
  4. inline void DbgZPrintAtlTrace(LPTSTR pszFormat,...)
  5. {
  6. va_list v1;
  7. va_start(v1, pszFormat);
  8. DbgZPrintTrace( pszFormat, v1 );
  9. va_end(v1);
  10. }
  11. inline void DbgZPrintAtlTrace2(DWORD category, UINT level, LPSTR lpszFormat, ...)
  12. {
  13. DWORD g_dwAtlTraceCategory = 0xffffffff;
  14. if (category & g_dwAtlTraceCategory && level <= ATL_TRACE_LEVEL)
  15. {
  16. va_list v1;
  17. va_start(v1, lpszFormat);
  18. DbgZPrintTrace( lpszFormat, v1 );
  19. va_end(v1);
  20. }
  21. }
  22. #define ATLTRACE DbgZPrintAtlTrace
  23. #define ATLTRACE2 DbgZPrintAtlTrace2
  24. #endif // _DEBUG
  25. #endif // __ConfAtltrace_h__