SDL_IsChromebook(3)

✨ NAME ✨

SDL_IsChromebook β€” the lil vibe check that tells you if your app is running on a Chromebook πŸ’»βœ¨

(it lives in the SDL3 FUNCTIONS section of the manual, iykyk)


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_system.h>

bool SDL_IsChromebook(void);

okay so you pull in that header, call the function, no args, nothing fancy, and it hands you back a bool. that's the whole thing bestie 🫢


πŸ’– RETURN VALUE πŸ’–

  • true β€” slay, you are literally on a Chromebook πŸ‘‘
  • false β€” nope, not a Chromebook, moving on πŸ’…

🧚 THREAD SAFETY 🧚

go off fr fr β€” it's safe to call this function from any thread. no locks, no stress, no main-character-only nonsense. call it from wherever you want πŸŽ€


⭐ AVAILABILITY ⭐

this one has been around since SDL 3.2.0 🌱 so if you're on anything older... it's giving nothing, sorry 😭


πŸ’€ reminder bestie: this function only answers the question. it does not make your app Chromebook-ready, it does not detect anything else, it does not take arguments. bool in, bool out, periodt.

and that's the whole page πŸ¦‹ written up in the Simple Directmedia Layer docs, sitting pretty at version SDL 3.4.18 πŸ’œ catch you in the next man page, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from