Author: Eugene Nalimov
Date: 11:13:23 11/12/99
Go up one level in this thread
Look at the description of C preprocessor in your tutorial. If it doesn't
explain what is a##b and ##a, throw it away, and buy the better one. Or look in
the online help - at least Visual Studio explains it well, not know about other
environments.
Eugene
On November 12, 1999 at 11:55:37, Paul Svelmoe wrote:
>Hi,
> I am still trying to figure out how to go about generating a partial set of 6
>man tablebases for the Kasp-World match mainly to prove a draw or win after
>58..Qf5. I believe I have an algorithm that may work relatively painlessly
>which would improve on Eugene Schults' work, but I am stuck on one line of code,
>the only one out of all of it that I just totally don't understand. Here it
>is...
>
>#define TB(name, fSym, funW, funB, cbW, cbB) { tbid_##name, fSym, { funW, funB
>}, #name, { cbW, cbB } },
>
>Can someone explain to me what this does? I understand the part before the
>first "{" as this is the way it seems a lot of the macros start out. But after
>that, I can't make sense of it, and none of my c/c++ books show anything like
>it. Is there something special about the "##" in tbid_##name? What is "#name"?
>"#name" doesn't seem to correspond with any of the arguments. And finally, what
>is that comma at the end doing in there?
>
>Thanks!
>Paul
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.