]> git.sesse.net Git - stockfish/blobdiff - src/misc.h
search: fix a bug and clear history update
[stockfish] / src / misc.h
index d6290450ad5d17f5e4ba294d489c0c642365eb73..8bf09a86fae8a2d46a8d086f31eb4c6ce30f2308 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
 */
@@ -56,5 +56,13 @@ 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++; }
 
 #endif // !defined(MISC_H_INCLUDED)