Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 23, 2007 debug { CreateTrace(); ] | ||||
---|---|---|---|---|
| ||||
Hi, a silly noob question... may I use : debug { CreateTrace(); } to replace #ifdef _DEBUG CreateTrace(); #endif Thanks Bjoern |
December 23, 2007 Re: debug { CreateTrace(); ] | ||||
---|---|---|---|---|
| ||||
Posted in reply to BLS | "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 Re: debug { CreateTrace(); ] | ||||
---|---|---|---|---|
| ||||
Posted in reply to BLS | 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 Re: debug { CreateTrace(); ] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | 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
|
Copyright © 1999-2021 by the D Language Foundation