Revert odd depths razoring
[stockfish] / src / color.h
index f27b14eba3ad139d0a93ba8440e5fa43b7f49c9e..872c7b79548dce4524e1b35bfb49cf678356dbc8 100644 (file)
 #if !defined(COLOR_H_INCLUDED)
 #define COLOR_H_INCLUDED
 
-////
-//// Includes
-////
-
-#include "misc.h"
-
 
 ////
 //// Types
@@ -50,12 +44,8 @@ inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);
 }
 
-
-////
-//// Prototypes
-////
-
-extern bool color_is_ok(Color c);
-
+inline bool color_is_ok(Color c) {
+  return c == WHITE || c == BLACK;
+}
 
 #endif // !defined(COLOR_H_INCLUDED)