Introduce Eval namespace

Wrap evaluation related stuff and reshuffle
a bit the code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-03-06 10:09:37 +01:00
parent 843a5961e1
commit 4220f191d8
6 changed files with 114 additions and 111 deletions

View File

@@ -33,7 +33,7 @@ OptionsMap Options; // Global object
namespace {
/// 'On change' actions, triggered by an option's value change
void on_eval(UCIOption&) { eval_init(); }
void on_eval(UCIOption&) { Eval::init(); }
void on_threads(UCIOption&) { Threads.read_uci_options(); }
void on_hash_size(UCIOption& o) { TT.set_size(o); }
void on_clear_hash(UCIOption& o) { TT.clear(); o = false; } // UCI button