pods::...ersion(3pm)

✨ NAME ✨

SDL::Version β€” the SDL bindings for the structure SDL_Version, bestie πŸ’…

(also hi, this is the pods::...ersion(3pm) page from the User Contributed Perl Documentation, if u were wondering where u landed 🫢)


πŸŽ€ CATEGORY πŸŽ€

Core, Structure β€” yeah she's core-core, structural icon behavior only πŸ‘‘


🌸 SYNOPSIS 🌸

use SDL;
use SDL::Version;

# print compile-time version
printf("SDL::version is %d.%d.%d\n", SDL::version->major,
                                     SDL::version->minor,
                                     SDL::version->patch);

# print linked version
printf("SDL::linked_version is %d.%d.%d\n", SDL::linked_version->major,
                                            SDL::linked_version->minor,
                                            SDL::linked_version->patch);

like, literally copy-paste and u get numbers. slay. 🧚


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the SDL::Version structure is what the SDL::linked_version function and the SDL::version macro are out here using. πŸ’–

The SDL::linked_version function returns the link-time SDL version, whereas SDL::version returns the compile-time SDL version. two different girls, two different vibes, same struct.

⚠️ note note note: this is the SDL version, not the SDL_Perl version!! do not confuse them or it's giving embarrassing 😭 the SDL_Perl version lives in $SDL::VERSION. periodt.

⭐ METHODS ⭐

three little getters, all main character energy, all returning a version number. no cap. πŸ“

πŸ’œ major

Returns the major version number. the big one. the eldest sibling. πŸ‘‘

πŸ’œ minor

Returns the minor version number. the middle child, lowkey underrated. ✨

πŸ’œ patch

Returns the patch version number. the baby of the family and honestly? she fixes everything. πŸ©ΉπŸ’…


🌈 AUTHORS 🌈

See "AUTHORS" in SDL. (yes bestie, it's a whole delegation moment β€” go check that page 🫢)


and that's the whole vibe check!! this was pods::...ersion(3pm) from perl v5.42.3, dated 2026-08-19 β€” mwah, go forth and printf ur versions πŸ’–πŸŽ€πŸŒ·

πŸ“¦ where this page comes from