summaryrefslogtreecommitdiff
path: root/source/core.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/core.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/core.h')
-rw-r--r--source/core.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/core.h b/source/core.h
new file mode 100644
index 0000000..e65a273
--- /dev/null
+++ b/source/core.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdint.h>
+
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
+typedef uint64_t u64;
+
+typedef int8_t s8;
+typedef int16_t s16;
+typedef int32_t s32;
+typedef int64_t s64;
+
+typedef float r32;
+typedef double r64;
+
+typedef u8 b8;
+
+#define KB(x) (1024 * (x))
+#define MB(x) (1024 * KB((x)))
+#define GB(x) (1024 * MB((x)))
+