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
- ubuntu stonking: libsdl-perl 2.548-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms