stellarUCI Chess engine written in C++20 |
git clone git://git.dimitrijedobrota.com/stellar.git |
Log | Files | Refs | README | LICENSE | |
commit | 0b4d57ebf8864c0f4276668cf5df89a66cf3ed93 |
parent | 1d52c2087a2d9211d186318ca6bd568f88828d60 |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Sat, 29 Jul 2023 20:14:43 +0200 |
Prevent potential header guard conflict
Diffstat:M | CMakeLists.txt | | | +- |
M | src/include/attack.h | | | ++-- |
M | src/include/board.h | | | ++-- |
M | src/include/moves.h | | | ++-- |
M | src/include/perft.h | | | ++-- |
M | src/include/piece.h | | | ++-- |
M | src/include/score.h | | | ++-- |
M | src/include/utils.h | | | ++-- |
8 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -3,7 +3,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(
Stellar
VERSION 0.0.1
VERSION 0.0.2
DESCRIPTION "Chess engine written in C"
HOMEPAGE_URL https://git.dimitrijedobrota.com/stellar.git
LANGUAGES C
diff --git a/src/include/attack.h b/src/include/attack.h
@@ -1,5 +1,5 @@
#ifndef ATTACK_H
#define ATTACK_H
#ifndef STELLAR_ATTACK_H
#define STELLAR_ATTACK_H
#include "utils.h"
diff --git a/src/include/board.h b/src/include/board.h
@@ -1,5 +1,5 @@
#ifndef BOARD_H
#define BOARD_H
#ifndef STELLAR_BOARD_H
#define STELLAR_BOARD_H
#include "piece.h"
diff --git a/src/include/moves.h b/src/include/moves.h
@@ -1,5 +1,5 @@
#ifndef MOVES_H
#define MOVES_H
#ifndef STELLAR_MOVES_H
#define STELLAR_MOVES_H
#include <stdint.h>
diff --git a/src/include/perft.h b/src/include/perft.h
@@ -1,5 +1,5 @@
#ifndef PERFT_H
#define PERFT_H
#ifndef STELLAR_PERFT_H
#define STELLAR_PERFT_H
#include "board.h"
diff --git a/src/include/piece.h b/src/include/piece.h
@@ -1,5 +1,5 @@
#ifndef PIECE_H
#define PIECE_H
#ifndef STELLAR_PIECE_H
#define STELLAR_PIECE_H
#include "attack.h"
diff --git a/src/include/score.h b/src/include/score.h
@@ -1,5 +1,5 @@
#ifndef SCORE_H
#define SCORE_H
#ifndef STELLAR_SCORE_H
#define STELLAR_SCORE_H
#include "board.h"
diff --git a/src/include/utils.h b/src/include/utils.h
@@ -1,5 +1,5 @@
#ifndef __UTILS_H
#define __UTILS_H
#ifndef STELLAR_UTILS_H
#define STELLAR_UTILS_H
// useful macros
#define MAX(a, b) ((a > b) ? a : b)