Subversion Repositories Aucun

Rev

Rev 71 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __TRACE_H__
#define __TRACE_H__

#define WIDEN2(x) L ## x
#define WIDEN(x) WIDEN2(x)
#define __WFILE__ WIDEN(__FILE__)

#define TRACE(s, ...) Trace(__WFILE__, __LINE__, s, __VA_ARGS__)
#define TRACEMORE(s, ...) Trace(0, 0, s, __VA_ARGS__)

#define TRACEMSG(d) TraceMessage(__WFILE__, __LINE__, d)


#include "extern.h"

EXTERN void Trace(const wchar_t* file, int line, const wchar_t *format, ...);
EXTERN void TraceMessage(const wchar_t* file, int line, DWORD dw);


#endif