Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: The Baby - 3 months old

Author: Dan Honeycutt

Date: 07:55:01 09/06/04

Go up one level in this thread


On September 06, 2004 at 07:02:52, Volker Böhm wrote:

>Hi Stuart,
>
>once we used #ifdef´s too. I use now constants. My C++ compiler is able to fully
>remove any "if (false)" or "if (true).
>
>Thus
>#define DONULL
>#ifdef DONULL
>*Nullmove-Code*
>#endif
>
>is
>
>const DoNull = true;
>
>if (DoNull)
>{
> *Nullmove-Code*
>}
>
>It works fine and is less ugly to read.
>
>Greetings Volker

Thanks Volker.  Not only easier to read but if you want to try an adaptive
version you can simply remove the const declaration and set DoNull to the
desired condition.

Hardly a day goes by reading this forum that I don't pick up some useful piece
of information.

Dan H.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.