Thread overview
debug { CreateTrace(); ]
Dec 23, 2007
BLS
Dec 23, 2007
Bill Baxter
Dec 23, 2007
BLS
December 23, 2007
Hi, a silly noob question...
may I use :

debug
{
  CreateTrace();
}

to replace
#ifdef _DEBUG
  CreateTrace();
#endif

Thanks
Bjoern
December 23, 2007
"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.


December 23, 2007
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
December 23, 2007
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