mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user