]> git.sesse.net Git - stockfish/blobdiff - src/color.h
Rename piece_of_color_and_type() to make_piece()
[stockfish] / src / color.h
index 72a8bbc9af443ed756bd967c27c175f71b5735e1..08eb8d8183c6edbdb9fc572003a5af1e49f42f6a 100644 (file)
@@ -21,6 +21,7 @@
 #if !defined(COLOR_H_INCLUDED)
 #define COLOR_H_INCLUDED
 
+#include "types.h"
 
 ////
 //// Types
@@ -37,13 +38,13 @@ enum SquareColor {
   LIGHT
 };
 
+ENABLE_OPERATORS_ON(Color)
+
 
 ////
 //// Inline functions
 ////
 
-inline void operator++ (Color &c, int) { c = Color(int(c) + 1); }
-
 inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);
 }