summaryrefslogtreecommitdiff
path: root/src/testsee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testsee.c')
-rw-r--r--src/testsee.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testsee.c b/src/testsee.c
index 77fd706..2106494 100644
--- a/src/testsee.c
+++ b/src/testsee.c
@@ -26,6 +26,19 @@ Revision History:
#include "chess.h"
+// This harness's job is to validate _GetAttacksBB against a fixed
+// baseline (the real asm/CROUTINES implementation), not to compare
+// the engine's own current GetAttacks macro target against itself --
+// but chess.h's GETATTACKS_BITBOARD toggle (board_representation/
+// MIGRATION.md section 6) can make that macro resolve to
+// _GetAttacksBB. Undefine it here so every "GetAttacks(...)" call
+// below always reaches the real asm/CROUTINES function (still
+// declared under that name in chess.h, just no longer macro-routed),
+// regardless of which implementation is live in production.
+#ifdef GetAttacks
+#undef GetAttacks
+#endif
+
#ifdef TEST_BROKEN
ULONG g_uRootOnMove;