Click here to Skip to main content
15,893,487 members
Articles / Desktop Programming / MFC

Navigate your TRACE outputs

Rate me:
Please Sign up or sign in to vote.
3.33/5 (6 votes)
28 Jul 2001CPOL 94.4K   754   28  
Extended TRACE macros with easy source navigation
//---------------------------------------------------------------------------
//
// MODULE NAME: xtracestd.h
//
// DESCRIPTION: Replaces the standard MFC TRACE macros by the according
//              XTRACE macros from xtrace.h.
//
// AUTHOR     : Written by Wolfgang Busch (wolfgang.busch@knuut.de) 
//
// COPYRIGHT  : You can use or modify this file in any way you like.
//
// HISTORY    :
// 2000-10-23 : Initial release
//
//---------------------------------------------------------------------------
#ifndef __XTRACE_STANDARD_H__
#define __XTRACE_STANDARD_H__

#ifdef TRACE
// Redefine TRACE macros to make XTRACE macros the default

#undef  TRACE
#define TRACE  XTRACE
#undef  TRACE0
#define TRACE0 XTRACE0
#undef  TRACE1
#define TRACE1 XTRACE1
#undef  TRACE2
#define TRACE2 XTRACE2
#undef  TRACE3
#define TRACE3 XTRACE3

#ifndef __XTRACE_H__  // Include "xtrace.h" if necessary
#include "xtrace.h"
#endif

#else  // <Afx.h> not included

#error Include <Afx.h> first -- TRACE not defined!

#endif  // ifdef TRACE

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions