add GEODE_DESKTOP GEODE_MOBILE macros
Some checks are pending
Build Binaries / Build Windows (push) Waiting to run
Build Binaries / Build macOS (push) Waiting to run
Build Binaries / Build Android (64-bit) (push) Waiting to run
Build Binaries / Build Android (32-bit) (push) Waiting to run
Build Binaries / Publish (push) Blocked by required conditions

This commit is contained in:
Cvolton 2024-11-16 00:19:03 +01:00
parent f6c23220d8
commit d6f0c597f1
No known key found for this signature in database

View file

@ -11,6 +11,8 @@
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) && !defined(__CYGWIN__) #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) && !defined(__CYGWIN__)
#define GEODE_WINDOWS(...) __VA_ARGS__ #define GEODE_WINDOWS(...) __VA_ARGS__
#define GEODE_DESKTOP(...) __VA_ARGS__
#define GEODE_MOBILE(...)
#define GEODE_IS_WINDOWS #define GEODE_IS_WINDOWS
#define GEODE_IS_DESKTOP #define GEODE_IS_DESKTOP
#define GEODE_PLATFORM_NAME "Windows" #define GEODE_PLATFORM_NAME "Windows"
@ -43,6 +45,8 @@
#define GEODE_INTEL_MAC(...) #define GEODE_INTEL_MAC(...)
#define GEODE_ARM_MAC(...) #define GEODE_ARM_MAC(...)
#define GEODE_IOS(...) __VA_ARGS__ #define GEODE_IOS(...) __VA_ARGS__
#define GEODE_DESKTOP(...)
#define GEODE_MOBILE(...) __VA_ARGS__
#define GEODE_IS_IOS #define GEODE_IS_IOS
#define GEODE_IS_MOBILE #define GEODE_IS_MOBILE
#define GEODE_PLATFORM_NAME "iOS" #define GEODE_PLATFORM_NAME "iOS"
@ -53,6 +57,8 @@
#else #else
#define GEODE_IOS(...) #define GEODE_IOS(...)
#define GEODE_MACOS(...) __VA_ARGS__ #define GEODE_MACOS(...) __VA_ARGS__
#define GEODE_DESKTOP(...) __VA_ARGS__
#define GEODE_MOBILE(...)
#define GEODE_IS_MACOS #define GEODE_IS_MACOS
#define GEODE_IS_DESKTOP #define GEODE_IS_DESKTOP
#define GEODE_PLATFORM_EXTENSION ".dylib" #define GEODE_PLATFORM_EXTENSION ".dylib"
@ -84,6 +90,8 @@
// Android // Android
#if defined(__ANDROID__) #if defined(__ANDROID__)
#define GEODE_ANDROID(...) __VA_ARGS__ #define GEODE_ANDROID(...) __VA_ARGS__
#define GEODE_MOBILE(...) __VA_ARGS__
#define GEODE_DESKTOP(...)
#define GEODE_IS_ANDROID #define GEODE_IS_ANDROID
#define GEODE_IS_MOBILE #define GEODE_IS_MOBILE
#define GEODE_CALL #define GEODE_CALL