Switch numerical aliases to typedefs

This commit is contained in:
2026-01-04 23:10:58 +00:00
parent f383fbb43e
commit 8efcf14462

View File

@@ -10,25 +10,25 @@
#include <uchar.h> #include <uchar.h>
#if WAPP_PLATFORM_C_VERSION >= WAPP_PLATFORM_C23_VERSION #if WAPP_PLATFORM_C_VERSION >= WAPP_PLATFORM_C23_VERSION
#define c8 char8_t typedef char8_t c8;
#else #else
#define c8 uint8_t typedef uint8_t c8;
#endif // !WAPP_PLATFORM_C23_VERSION #endif // !WAPP_PLATFORM_C23_VERSION
#define c16 char16_t typedef char16_t c16;
#define c32 char32_t typedef char32_t c32;
#else #else
#define c8 uint8_t typedef uint8_t c8;
#define c16 uint16_t typedef uint16_t c16;
#define c32 uint32_t typedef uint32_t c32;
#endif // !WAPP_PLATFORM_C #endif // !WAPP_PLATFORM_C
#define u8 uint8_t typedef uint8_t u8;
#define u16 uint16_t typedef uint16_t u16;
#define u32 uint32_t typedef uint32_t u32;
#define u64 uint64_t typedef uint64_t u64;
#define b8 uint8_t typedef uint8_t b8;
#ifndef WAPP_PLATFORM_CPP #ifndef WAPP_PLATFORM_CPP
@@ -42,17 +42,17 @@
#endif // !WAPP_PLATFORM_CPP #endif // !WAPP_PLATFORM_CPP
#define i8 int8_t typedef int8_t i8;
#define i16 int16_t typedef int16_t i16;
#define i32 int32_t typedef int32_t i32;
#define i64 int64_t typedef int64_t i64;
#define f32 float typedef float f32;
#define f64 double typedef double f64;
#define f128 long double typedef long double f128;
#define uptr uintptr_t typedef uintptr_t uptr;
#define iptr intptr_t typedef intptr_t iptr;
#define wapp_extern extern #define wapp_extern extern
#define wapp_intern static #define wapp_intern static