From f7cfeb3ad5b641e7de32255c45de451fd9b6d017 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 27 Feb 2025 23:56:25 +0100 Subject: [PATCH] move includes to more logical positions --- src/game/game.h | 8 +++++++- src/util/gen/dynarr.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/game/game.h b/src/game/game.h index d454b98..c65872b 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -1,9 +1,15 @@ #pragma once -#include +#include #include "gametime.h" +// constants for pi(π) and tau(τ) +#define PI (M_PI) // π constant +#define TAU (M_PI * 2.0) // τ constant +#define PIf (M_PIf) // +#define TAUf (M_PIf * 2.0F) // + typedef struct { gametime time; } gamedata; diff --git a/src/util/gen/dynarr.h b/src/util/gen/dynarr.h index 49e76fb..15a09ea 100644 --- a/src/util/gen/dynarr.h +++ b/src/util/gen/dynarr.h @@ -1,13 +1,13 @@ #ifndef DYNARR_H #define DYNARR_H #include -#include #define DYNARR_COMB2(a, b) a##b #define DYNARR_COMB1(a, b) DYNARR_COMB2(a, b) #endif // DYNARR_H #ifdef DYNARR_TYPE +#include #include #include