Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/levels.c5
-rw-r--r--src/tick.c5
-rw-r--r--src/types.c5
3 files changed, 15 insertions, 0 deletions
diff --git a/src/levels.c b/src/levels.c
index 22ad76a..004d0d9 100644
--- a/src/levels.c
+++ b/src/levels.c
@@ -1,3 +1,6 @@
+#ifndef INCLUDE_LEVELS_C
+#define INCLUDE_LEVELS_C
+
#include "all.c"
typedef struct {
@@ -35,3 +38,5 @@ static Level levels[] = {
#undef _
#undef B
#undef O
+
+#endif // INCLUDE_LEVELS_C
diff --git a/src/tick.c b/src/tick.c
index 8b8f731..4b255df 100644
--- a/src/tick.c
+++ b/src/tick.c
@@ -1,3 +1,6 @@
+#ifndef INCLUDE_TICK_C
+#define INCLUDE_TICK_C
+
#include "all.c"
static int isRed(int cell) {
@@ -333,3 +336,5 @@ static void tick(Game *game, Arena a) {
// TODO: Win conditions
}
}
+
+#endif // INCLUDE_TICK_C
diff --git a/src/types.c b/src/types.c
index cbd9315..fd8f9ee 100644
--- a/src/types.c
+++ b/src/types.c
@@ -1,3 +1,6 @@
+#ifndef INCLUDE_TYPES_C
+#define INCLUDE_TYPES_C
+
#include "all.c"
#define MEM_SIZE (1<<24)
@@ -106,3 +109,5 @@ static void *alloc(Arena *a, ptrdiff_t count, ptrdiff_t size, ptrdiff_t align) {
return r;
}
+
+#endif // INCLUDE_TYPES_C