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

@@ -6,9 +6,9 @@
#include "../../core/strings/str8/str8.h"
#include <stdbool.h>
#ifdef __cplusplus
#ifdef WAPP_PLATFORM_CPP
BEGIN_C_LINKAGE
#endif // __cplusplus
#endif // WAPP_PLATFORM_CPP
#define wapp_tester_result(PASSED) ((TestFuncResult){.name = wapp_str8_lit_ro(__func__), .passed = PASSED})
#define wapp_tester_run_tests(...) run_tests(__VA_ARGS__, NULL)
@@ -27,8 +27,8 @@ typedef TestFuncResult(TestFunc)(void);
void run_tests(TestFunc *func1, ...);
#ifdef __cplusplus
#ifdef WAPP_PLATFORM_CPP
END_C_LINKAGE
#endif // __cplusplus
#endif // WAPP_PLATFORM_CPP
#endif // !TESTER_H