W95TRACE.H (1559B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /* 17 declarations for Win95 tracing facility 18 */ 19 20 #ifdef _DEBUG 21 22 #ifndef __TRACEW95__ 23 #define __TRACEW95__ 24 25 #include <windows.h> 26 27 // redefine all the MFC macros to point to us 28 29 #undef TRACE 30 #define TRACE OutputDebugStringW95 31 32 #undef TRACE0 33 #define TRACE0 OutputDebugStringW95 34 35 #undef TRACE1 36 #define TRACE1 OutputDebugStringW95 37 38 #undef TRACE2 39 #define TRACE2 OutputDebugStringW95 40 41 #undef TRACE3 42 #define TRACE3 OutputDebugStringW95 43 44 // redefine OutputDebugString so that it works with 45 // API calls 46 #undef OutputDebugString 47 #define OutputDebugString OutputDebugStringW95 48 49 50 // function declarations 51 void OutputDebugStringW95( LPCTSTR lpOutputString, ... ); 52 53 #endif //__TRACEW95__ 54 55 #endif // _DEBUG