aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
committereug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
commit72761f770a73e3e8fac9b57043ed19f084bfb230 (patch)
treebc482dc87dfbddd4cd9a71461d37e9dde41cfb45 /src/types.h
parentc3474b1481a02baefda1abe286d4fbef39597bce (diff)
downloadj1chess-tmp.tar.gz
tmp: save progress from @black-pearltmp
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index 371d8b8..0728947 100644
--- a/src/types.h
+++ b/src/types.h
@@ -1,6 +1,21 @@
+#ifndef TYPES_H
+#define TYPES_H
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long QWORD;
typedef unsigned long U64;
+#define C64(constantU64) constantU64##ULL
+#define BIT (U64)1
+typedef enum enumSquare {
+ a1, b1, c1, d1, e1, f1, g1, h1,
+ a2, b2, c2, d2, e2, f2, g2, h2,
+ a3, b3, c3, d3, e3, f3, g3, h3,
+ a4, b4, c4, d4, e4, f4, g4, h4,
+ a5, b5, c5, d5, e5, f5, g5, h5,
+ a6, b6, c6, d6, e6, f6, g6, h6,
+ a7, b7, c7, d7, e7, f7, g7, h7,
+ a8, b8, c8, d8, e8, f8, g8, h8
+} enumSquare;
+#endif