pods::...ersion(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

✨ 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