summaryrefslogtreecommitdiff
path: root/source/math.h
diff options
context:
space:
mode:
authortalha <sarcxd@gmail.com>2025-03-06 10:37:36 +0500
committertalha <sarcxd@gmail.com>2025-03-06 10:37:36 +0500
commit23cc1a7d8c5ae6a397071763d0326990868c37af (patch)
tree0eb8fd47d678c57ec43c22ed104997c10c900260 /source/math.h
parent1d0bff7b975a63ef9047f16acdb2ef03123772d9 (diff)
Making project work with clangd:
- Moved a lot of items into separate header files - Still compiling everything as a single translation unit (but maybe a heavier translation unit [if that is possible]) - setup compile_flags, a way to use clangd without using a build system - stuff like clangd and cmake don't work well with unity builds, so I avoid jumping through hoops
Diffstat (limited to 'source/math.h')
-rwxr-xr-xsource/math.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/math.h b/source/math.h
index cc56a8f..d335bee 100755
--- a/source/math.h
+++ b/source/math.h
@@ -1,8 +1,10 @@
#ifndef MATH_H
#define MATH_H
-#include "SDL2/SDL_assert.h"
#include <math.h>
+#include <string.h>
+#include "SDL2/SDL_assert.h"
+#include "core.h"
#define PI 3.14159265358979323846264338327950288f
#define SQUARE(x) ((x)*(x))