W95TRACE.H 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /*
  19. declarations for Win95 tracing facility
  20. */
  21. #ifdef _DEBUG
  22. #ifndef __TRACEW95__
  23. #define __TRACEW95__
  24. #include <windows.h>
  25. // redefine all the MFC macros to point to us
  26. #undef TRACE
  27. #define TRACE OutputDebugStringW95
  28. #undef TRACE0
  29. #define TRACE0 OutputDebugStringW95
  30. #undef TRACE1
  31. #define TRACE1 OutputDebugStringW95
  32. #undef TRACE2
  33. #define TRACE2 OutputDebugStringW95
  34. #undef TRACE3
  35. #define TRACE3 OutputDebugStringW95
  36. // redefine OutputDebugString so that it works with
  37. // API calls
  38. #undef OutputDebugString
  39. #define OutputDebugString OutputDebugStringW95
  40. // function declarations
  41. void OutputDebugStringW95( LPCTSTR lpOutputString, ... );
  42. #endif //__TRACEW95__
  43. #endif // _DEBUG