SHTK_VERSION_AT_LEAST(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’… shtk_version_at_least(3) β€” the version vibe check ✨

okay so bestie, this one lives in the Library Functions Manual (section 3, iykyk), and it's basically the "are we on the same page?" function for shtk. Let me put you on. 🫢


🌸 NAME 🌸

shtk_version_at_least β€” checks if shtk is a minimum version


πŸŽ€ LIBRARY πŸŽ€

shtk_import version

like, that's the import you need, periodt.


✨ SYNOPSIS ✨

shtk_version_at_least version

πŸ’– DESCRIPTION πŸ’–

so the shtk_version_at_least function checks if the version of the in-use shtk is, at least, the version you gave it in version. that's it, that's the whole job. lowkey iconic for how simple it is. πŸ‘‘


πŸ”₯ RETURN VALUES πŸ”₯

  • shtk_version_at_least returns 0 (true) if the in-use shtk is version version or later β€” slay, you're good πŸ’…
  • 1 (false) otherwise β€” not me, not the version πŸ’€

πŸ¦‹ EXAMPLES πŸ¦‹

if shtk_version_at_least 1.5; then
    # Use symbols that are available in 1.5 and later.
else
    # Workaround the lack of functionality in shtk, or exit.
fi

see how it's giving "check first, then flex"? that's the move. ⭐


🌈 SEE ALSO 🌈

go read those too, bestie, i'm literally begging πŸ™ˆ


πŸ’œ HISTORY πŸ’œ

shtk_version_at_least first appeared in shtk 1.5. a true main character debut. 🌸


fr fr: the facts above are the whole vibe β€” don't go assuming extra behaviour that isn't written here. iykyk. 🧚

and that's a wrap, bestie! πŸŽ€ this page came from the Debian source, dated November 7, 2014, and the header/footer on the original both say SHTK_VERSION_AT_LEAST(3) β€” so now you know the lore. stay slay, keep your versions checked. πŸ’–βœ¨

πŸ“¦ where this page comes from