Author: Reinhard Scharnagl
Date: 05:39:31 11/24/03
Go up one level in this thread
Hi Anthony, >I do something similar with my eval, it works like this: > >#ifdef ZAPPA_EVAL_PRINT_DEBUG >#define DEBUG_ONLY(a) a >#else >#define DEBUG_ONLY(a) ; >#endif > >#define ZAPPA_EVAL_PRINT_DEBUG >#include "z_eval_inline.c" >#undef ZAPPA_EVAL_PRINT_DEBUG >#include "z_eval_inline.c" > >#ifdef ZAPPA_EVAL_PRINT_DEBUG >int eval_kingsafety_white_debug(zappa_game g, recursion_block rb, zevp *base) >#else >int eval_kingsafety_white(zappa_game g, recursion_block rb) >#endif well, it equals the way I do it up to this moment, but I want to _avoid_ any including *.C or *.CPP files, because there are semantic problems, having one such file compiled twice, e.g. within debugging. I thought on using templates, but they (as far as I know) are fine to implement same algorithms to different types. But what I want to have is to implement (nearly equal) algorithms for the same type using two different names. Thank you for your answer. Regards, Reinhard.
This page took 0.01 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.