www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - debug { CreateTrace(); ]

reply BLS <nanali nospam-wanadoo.fr> writes:
Hi, a silly noob question...
may I use :

debug
{
   CreateTrace();
}

to replace
#ifdef _DEBUG
   CreateTrace();
#endif

Thanks
Bjoern
Dec 23 2007
next sibling parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"BLS" <nanali nospam-wanadoo.fr> wrote in message 
news:fkm3i6$2emm$1 digitalmars.com...
 Hi, a silly noob question...
 may I use :

 debug
 {
   CreateTrace();
 }

 to replace
 #ifdef _DEBUG
   CreateTrace();
 #endif
That's what it's there for.
Dec 23 2007
prev sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
BLS wrote:
 Hi, a silly noob question...
 may I use :
 
 debug
 {
   CreateTrace();
 }
 
 to replace
 #ifdef _DEBUG
   CreateTrace();
 #endif
 
 Thanks
 Bjoern
That's what I'd do with it. --bb
Dec 23 2007
parent BLS <nanali nospam-wanadoo.fr> writes:
Bill Baxter schrieb:
 BLS wrote:
 Hi, a silly noob question...
 may I use :

 debug
 {
   CreateTrace();
 }

 to replace
 #ifdef _DEBUG
   CreateTrace();
 #endif

 Thanks
 Bjoern
That's what I'd do with it. --bb
Thanks folks, I have not found in the language spec. Just debug: and debug() Bjoern Happy Hollydays to you
Dec 23 2007