Switch to using WAPP_PLATFORM_CPP instead of __cplusplus

This commit is contained in:
2025-04-20 19:52:33 +01:00
parent 494bbeb398
commit b884d0e6a6
26 changed files with 114 additions and 98 deletions

View File

@@ -1,6 +1,7 @@
#ifndef ALIASES_H
#define ALIASES_H
#include "../platform/platform.h"
#include <stdint.h>
#define c8 uint8_t
@@ -28,10 +29,10 @@
#define internal static
#define persistent static
#ifdef __cplusplus
#ifdef WAPP_PLATFORM_CPP
#define class_mem static
#define BEGIN_C_LINKAGE extern "C" {
#define END_C_LINKAGE }
#endif // __cplusplus
#endif // WAPP_PLATFORM_CPP
#endif // !ALIASES_H