Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: The Baby - 3 months old

Author: Stuart Cracraft

Date: 07:36:35 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

Volker -- thanks for the suggestion. I was planning on doing this in
preparation for built-in permutation, self-tourneys, autotuning and
the like. Truly, conditional compilation normally is unreadable.

Stuart




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.