logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SIZE_MAX - The largest value that a size_t can hold for the target platform.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                    SDL_SIZE_MAX(3)

Description

size_t  is  generally  the same size as a pointer in modern times, but this can get weird on very old and
       very esoteric machines. For example, on a 16-bit Intel 286, you might have a 32-bit "far" pointer (16-bit
       segment plus 16-bit offset), but size_t is 16 bits, because it can only deal  with  the  offset  into  an
       individual segment.

       In modern times, it's generally expected to cover an entire linear address space. But be careful!

Name

       SDL_SIZE_MAX - The largest value that a size_t can hold for the target platform.

Synopsis

#include<SDL3/SDL_stdinc.h>#defineSDL_SIZE_MAXSIZE_MAX

See Also