commit 9c6f92b
uint
·
2026-07-21 20:46:20 +0000 UTC
parent a4fab4b
move platform.h types to types.h
3 files changed,
+20,
-12
+1,
-10
1@@ -1,18 +1,9 @@
2 #ifndef PLATFORM_H
3 #define PLATFORM_H
4
5-#include <stdint.h>
6-
7 #include <SDL2/SDL.h>
8
9-typedef int8_t i8;
10-typedef int16_t i16;
11-typedef int32_t i32;
12-typedef int64_t i64;
13-typedef uint8_t u8;
14-typedef uint16_t u16;
15-typedef uint32_t u32;
16-typedef uint64_t u64;
17+#include "types.h"
18
19 typedef SDL_Window MGWindow;
20
+16,
-0
1@@ -0,0 +1,16 @@
2+#ifndef TYPES_H
3+#define TYPES_H
4+
5+#include <stdint.h>
6+
7+typedef int8_t i8;
8+typedef int16_t i16;
9+typedef int32_t i32;
10+typedef int64_t i64;
11+typedef uint8_t u8;
12+typedef uint16_t u16;
13+typedef uint32_t u32;
14+typedef uint64_t u64;
15+
16+#endif /* TYPES_H */
17+
+3,
-2
1@@ -1,7 +1,7 @@
2 #include <sokol_gfx.h>
3
4 #include "util.h"
5-#include "platform/platform.h"
6+#include "types.h"
7 #include "renderer/renderer.h"
8
9 /* logging function for passing to sokol */
10@@ -15,7 +15,8 @@ static void sokol_log(const char* tag, u32 level, u32 item, const char* msg, u32
11
12 type = level <= 1 ? LOG_ERR : LOG_DBG;
13
14- mg_log(type, "%s: %s [%s:%u]",
15+ mg_log(
16+ type, "%s: %s [%s:%u]",
17 tag ? tag : "Sokol",
18 msg ? msg : "No message",
19 file ? file : "Unknown",