Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _MSPLOG_H_
      7 #define _MSPLOG_H_
      8 
      9 #ifdef MSPLOG
     10 
     11 #include <rtutils.h>
     12 
     13 #define MSP_ERROR ((DWORD)0x00010000 | TRACE_USE_MASK)
     14 #define MSP_WARN ((DWORD)0x00020000 | TRACE_USE_MASK)
     15 #define MSP_INFO ((DWORD)0x00040000 | TRACE_USE_MASK)
     16 #define MSP_TRACE ((DWORD)0x00080000 | TRACE_USE_MASK)
     17 #define MSP_EVENT ((DWORD)0x00100000 | TRACE_USE_MASK)
     18 
     19 WINBOOL NTAPI MSPLogRegister(LPCTSTR szName);
     20 void NTAPI MSPLogDeRegister();
     21 void NTAPI LogPrint(DWORD dwDbgLevel,LPCSTR DbgMessage,...);
     22 
     23 #define MSPLOGREGISTER(arg) MSPLogRegister(arg)
     24 #define MSPLOGDEREGISTER() MSPLogDeRegister()
     25 
     26 extern WINBOOL g_bMSPBaseTracingOn;
     27 
     28 #define LOG(arg) g_bMSPBaseTracingOn?LogPrint arg:0
     29 #else
     30 #define MSPLOGREGISTER(arg)
     31 #define MSPLOGDEREGISTER()
     32 #define LOG(arg)
     33 #endif
     34 
     35 #define DECLARE_LOG_ADDREF_RELEASE(x)
     36 #define CMSPComObject CComObject
     37 #endif
     38