SDL_IMAGE_VERSION_ATLEAST(3)
okay bestie, welcome to SDL_IMAGE_VERSION_ATLEAST(3) ๐ this page is from the SDL_image3 FUNCTIONS manual, and itโs literally a one-macro wonder. no cap.
๐ NAME ๐
SDL_IMAGE_VERSION_ATLEAST โ this macro will evaluate to true if you compiled with SDL_image at least X.Y.Z. Thatโs it, thatโs the whole serve: a version vibe check for your build. โจ
๐ธ SYNOPSIS ๐ธ
okay so hereโs the exact spell, backslashes and all โ copy it carefully, bestie, because line continuations are not a drill ๐ซถ
#include <SDL3_image/SDL_image.h>
#define SDL_IMAGE_VERSION_ATLEAST(X, Y, Z) \
((SDL_IMAGE_MAJOR_VERSION >= X) && \
(SDL_IMAGE_MAJOR_VERSION > X || SDL_IMAGE_MINOR_VERSION >= Y) && \
(SDL_IMAGE_MAJOR_VERSION > X || SDL_IMAGE_MINOR_VERSION > Y || SDL_IMAGE_MICRO_VERSION >= Z))
The placeholders X, Y, and Z are the version numbers youโre checking against. The macro walks the major/minor/micro checks in order, and it evaluates to true when the SDL_image you compiled with is at least X.Y.Z. Slay. ๐
sign-off from the footer, bestie: source is SDL_image, version is SDL_image 3.4.4, and the page is SDL_IMAGE_VERSION_ATLEAST(3) ๐ฆ the footer doesnโt spell out a separate date here, so Iโm not inventing one โ periodt. ๐
๐ฆ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 ยท zlib/libpng AND HPND-like AND zlib-like-permissive
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms