Rename platform constants

This commit is contained in:
2026-06-26 15:18:58 +01:00
parent ea689e7357
commit dc348f3e71
39 changed files with 241 additions and 241 deletions
+8 -8
View File
@@ -6,14 +6,14 @@
#include "../platform/platform.h"
#include <stdint.h>
#if defined(WAPP_PLATFORM_C) && WAPP_PLATFORM_C_VERSION >= WAPP_PLATFORM_C11_VERSION && !defined(WAPP_PLATFORM_APPLE)
#if defined(WP_PLATFORM_C) && WP_PLATFORM_C_VERSION >= WP_PLATFORM_C11_VERSION && !defined(WP_PLATFORM_APPLE)
#include <uchar.h>
#if WAPP_PLATFORM_C_VERSION >= WAPP_PLATFORM_C23_VERSION
#if WP_PLATFORM_C_VERSION >= WP_PLATFORM_C23_VERSION
typedef char8_t c8;
#else
typedef uint8_t c8;
#endif // !WAPP_PLATFORM_C23_VERSION
#endif // !WP_PLATFORM_C23_VERSION
typedef char16_t c16;
typedef char32_t c32;
@@ -21,7 +21,7 @@
typedef uint8_t c8;
typedef uint16_t c16;
typedef uint32_t c32;
#endif // !WAPP_PLATFORM_C
#endif // !WP_PLATFORM_C
typedef uint8_t u8;
typedef uint16_t u16;
@@ -30,7 +30,7 @@ typedef uint64_t u64;
typedef uint8_t b8;
#ifndef WAPP_PLATFORM_CPP
#ifndef WP_PLATFORM_CPP
#ifndef false
#define false (b8)0
@@ -40,7 +40,7 @@ typedef uint8_t b8;
#define true (b8)1
#endif // !true
#endif // !WAPP_PLATFORM_CPP
#endif // !WP_PLATFORM_CPP
typedef int8_t i8;
typedef int16_t i16;
@@ -58,10 +58,10 @@ typedef intptr_t iptr;
#define wapp_intern static
#define wapp_persist static
#ifdef WAPP_PLATFORM_CPP
#ifdef WP_PLATFORM_CPP
#define wapp_class_mem static
#define BEGIN_C_LINKAGE wapp_extern "C" {
#define END_C_LINKAGE }
#endif // WAPP_PLATFORM_CPP
#endif // WP_PLATFORM_CPP
#endif // !ALIASES_H