pods::...ersion(3pm)
β¨ NAME β¨
okay bestie, welcome to the pods::...ersion(3pm) page from the User Contributed Perl Documentation π
We're talking about SDL::Version β the SDL bindings for structure SDL_Version. Slay. π
π¦ CATEGORY π¦
- Core
- Structure
πΈ 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);
π DESCRIPTION π
So the SDL::Version structure is used by the SDL::linked_version function and the SDL::version macro. Iconic behavior, honestly. β¨
The SDL::linked_version function returns the link-time SDL version, whereas SDL::version returns the compile-time SDL version. They are literally giving different timing vibes. π°οΈ
Note, bestie: this is the SDL version, not the SDL_Perl version. The SDL_Perl version is in $SDL::VERSION. iykyk π
π METHODS π
π major
Returns the major version number. Periodt. π₯
π minor
Returns the minor version number. She's lowkey essential. π
π patch
Returns the patch version number. Tiny but mighty. πβ¨
π«Ά AUTHORS π«Ά
See "AUTHORS" in SDL. Go check the SDL besties for the full credits, okay? π
mwah π this gem is from source/version perl v5.42.0, dated 2024-05-01 β ty for reading, bestie, you ate ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms