X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=29fc8f0340cf76c9816daa5ade0fde5d5ee70d6f;hp=d6290450ad5d17f5e4ba294d489c0c642365eb73;hb=8d76de820f3dfb85f0767772cd0e19b1ec9d4808;hpb=bb751d6c890f5c50c642366d601740366cfae8d0 diff --git a/src/misc.h b/src/misc.h index d6290450..29fc8f03 100644 --- a/src/misc.h +++ b/src/misc.h @@ -6,12 +6,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + Glaurung is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -36,7 +36,7 @@ /// Version number. If this is left empty, the current date (in the format /// YYMMDD) is used as a version number. -const std::string EngineVersion = "2.1"; +const std::string EngineVersion = ""; //// @@ -56,5 +56,14 @@ extern int get_system_time(); extern int cpu_count(); extern int Bioskey(); +//// +//// Debug +//// +extern long dbg_cnt0; +extern long dbg_cnt1; +extern void dbg_print_hit_rate(); + +#define dbg_hit_on(x) { dbg_cnt0++; if (x) dbg_cnt1++; } +#define dbg_hit_on_c(c, x) { if (c) dbg_hit_on(x) } #endif // !defined(MISC_H_INCLUDED)