- Code: Select all
#define PI \
3.14
After the backslash, there must be no spaces. I already mentioned, that it won't display long lines correctly, either (linebreaks inside macros typically make the code wrong).
I saw a small error in the code, too:
pc = MYPIECE_TO_NALIMOV(pos->board[i][j]);
sq = ROWCOL_TO_64(i,j);
pc = pos->board[i][j];
The last line should be deleted. I started with that line, but the intention was to show, that a translation might be needed from internal piece values to Nalimov piece values. So I tried to show this, by introducing the macro MYPIECE_TO_NALIMOV (which dows nothing in this implementation). I forgot to delete the old line.
Regards,
Dieter