SDL_WINAPI_FAMILY_PHONE(3)

πŸ’– SDL_WINAPI_FAMILY_PHONE πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the group chat, where today's main character is SDL_WINAPI_FAMILY_PHONE πŸŽ€


✨ NAME ✨

SDL_WINAPI_FAMILY_PHONE β€” a preprocessor macro that's defined to 1 if you're compiling for Windows Phone. that's it. that's the whole vibe check. πŸ¦‹


✨ SYNOPSIS ✨

#include <SDL3/SDL_platform_defines.h>

#define SDL_WINAPI_FAMILY_PHONE (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)

so the way this works, it's literally just a macro that checks whether WINAPI_FAMILY equals WINAPI_FAMILY_PHONE_APP β€” and if it does, you get a nice lil 1. no cap. πŸ’…


✨ AVAILABILITY ✨

this macro has been serving since SDL 3.2.0. she's not ancient, she's not brand new β€” she's just iconic. πŸ‘‘


ngl if you're out here targeting Windows Phone in the year of our lord, you are genuinely a legend and I respect the dedication fr fr 🫢

and that's the whole page, bestie β€” short, sweet, and slaying 🌸 this was SDL_WINAPI_FAMILY_PHONE(3) from the Simple Directmedia Layer era, version SDL 3.4.18. mwah, take care of her πŸ’œπŸ’–βœ¨

πŸ“¦ where this page comes from