X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=3953d1c90dabfcdb462484575c36d0a9963c9717;hp=aee530b05485d6149ec3441e44db51cdcfbf88d7;hb=343544f3f7fe780a4231b78646ab2fd61760e294;hpb=203fdc9ac1b0ad5e5820b450a0cffdffb917e069 diff --git a/src/tt.h b/src/tt.h index aee530b0..3953d1c9 100644 --- a/src/tt.h +++ b/src/tt.h @@ -17,7 +17,7 @@ along with this program. If not, see . */ -#if !defined(TT_H_INCLUDED) +#ifndef TT_H_INCLUDED #define TT_H_INCLUDED #include "misc.h" @@ -78,7 +78,7 @@ class TranspositionTable { public: ~TranspositionTable() { free(mem); } - void new_search() { generation++; } + void new_search() { ++generation; } const TTEntry* probe(const Key key) const; TTEntry* first_entry(const Key key) const; @@ -115,4 +115,4 @@ inline void TranspositionTable::refresh(const TTEntry* tte) const { const_cast(tte)->set_generation(generation); } -#endif // !defined(TT_H_INCLUDED) +#endif // #ifndef TT_H_INCLUDED