SDL_PLATFORM_FREEBSD(3)

✨ SDL_PLATFORM_FREEBSD ✨

okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and it's genuinely so short it's giving little snack energy πŸ“ β€” but it matters, so let's go πŸ’…


🌸 NAME 🌸

SDL_PLATFORM_FREEBSD β€” a preprocessor macro that is only defined if you're compiling for FreeBSD.

like. only then. no FreeBSD, no macro. that's the whole vibe check πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_FREEBSD 1

so you pull in the header, and if the universe agrees that you're on FreeBSD, the macro is just… there. set to 1. iconic. no cap πŸ”₯


πŸ‘‘ AVAILABILITY πŸ‘‘

This macro has been available since SDL 3.2.0. she's new-ish, she's here, she ate πŸ’–


heads up bestie: if you're not compiling for FreeBSD, this macro literally does not exist β€” so don't go using it in a #ifdef and expecting a cute little 0 back, because you will simply not get one πŸ™ˆ

Simple Directmedia Layer Β· SDL 3.4.18 Β· that's the source and the version, mwah πŸ’œ stay compiling, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from