From d6f0c597f19ed12c0a632205e94d47b180286bef Mon Sep 17 00:00:00 2001 From: Cvolton Date: Sat, 16 Nov 2024 00:19:03 +0100 Subject: [PATCH] add GEODE_DESKTOP GEODE_MOBILE macros --- loader/include/Geode/platform/cplatform.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/loader/include/Geode/platform/cplatform.h b/loader/include/Geode/platform/cplatform.h index 54676313..592b55e7 100644 --- a/loader/include/Geode/platform/cplatform.h +++ b/loader/include/Geode/platform/cplatform.h @@ -11,6 +11,8 @@ #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) && !defined(__CYGWIN__) #define GEODE_WINDOWS(...) __VA_ARGS__ + #define GEODE_DESKTOP(...) __VA_ARGS__ + #define GEODE_MOBILE(...) #define GEODE_IS_WINDOWS #define GEODE_IS_DESKTOP #define GEODE_PLATFORM_NAME "Windows" @@ -43,6 +45,8 @@ #define GEODE_INTEL_MAC(...) #define GEODE_ARM_MAC(...) #define GEODE_IOS(...) __VA_ARGS__ + #define GEODE_DESKTOP(...) + #define GEODE_MOBILE(...) __VA_ARGS__ #define GEODE_IS_IOS #define GEODE_IS_MOBILE #define GEODE_PLATFORM_NAME "iOS" @@ -53,6 +57,8 @@ #else #define GEODE_IOS(...) #define GEODE_MACOS(...) __VA_ARGS__ + #define GEODE_DESKTOP(...) __VA_ARGS__ + #define GEODE_MOBILE(...) #define GEODE_IS_MACOS #define GEODE_IS_DESKTOP #define GEODE_PLATFORM_EXTENSION ".dylib" @@ -84,6 +90,8 @@ // Android #if defined(__ANDROID__) #define GEODE_ANDROID(...) __VA_ARGS__ + #define GEODE_MOBILE(...) __VA_ARGS__ + #define GEODE_DESKTOP(...) #define GEODE_IS_ANDROID #define GEODE_IS_MOBILE #define GEODE_CALL