Author: Uri Blass
Date: 11:32:02 08/13/03
Go up one level in this thread
On August 13, 2003 at 11:56:38, Uri Blass wrote: >There are cases when I make changes that are not supposed to change >a single global varaible(the changes can be only for speed or only some >preperation for another change because new function that I write may be used >later in a different way). > >I need for debugging purposes a function that put all >global varaibles to a file and a function that compares >the content of this file with the content of another >file that is supposed to be the same. > >Is there a simple way to do it or do I need for every global array that I have >to write a loop and for every varaible to write a special command. > >I prefer if there is some general solution(otherwise everytime that I add >a new global varaible or delete a global varaible I also need to change the >function). > >Uri I can add that what I think to do is to tell my program every 2^y nodes to save all the global varaibles in file moveiX.txt when X is a different number for every file (X=nodes>>y); Later when I do a change that is not supposed to change the global varaibles then I may ask the program to compare the global varaibles with the right files and stop in the first error. The problem is if I need to write manually code for every global variable and every array or if there is a better way. Uri
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.