SDL_SINT64_C(3)

okay bestie, welcome to SDL_SINT64_C(3) from the SDL3 FUNCTIONS manual β€” it's giving tiny macro, huge compiler energy πŸ’–

✨ NAME ✨

SDL_SINT64_C β€” append the 64 bit integer suffix to a signed integer literal. periodt πŸ’…

🌸 SYNOPSIS 🌸

#include <SDL3/SDL_stdinc.h>

#define SDL_SINT64_C(c)  c ## LL  /* or whatever the current compiler uses. */

πŸ¦‹ DESCRIPTION πŸ¦‹

This helps compilers that might believe a integer literal larger than 0xFFFFFFFF is overflowing a 32-bit value. Use SDL_SINT64_C(0xFFFFFFFF1) instead of 0xFFFFFFFF1 by itself.

Like, some compilers be side-eyeing your big literal and thinking it's too big for 32 bits? not today. You wrap it in SDL_SINT64_C(...) and it gets the 64-bit suffix treatment. Slay ✨

πŸ’œ AVAILABILITY πŸ’œ

This macro is available since SDL 3.2.0. no cap 🫢

πŸŽ€ SEE ALSO πŸŽ€


sending love from Simple Directmedia Layer πŸ’– SDL 3.4.18 πŸ’– SDL_SINT64_C(3) β€” that's the source/version/page-title stamp, bestie, and we're out πŸŽ€

πŸ“¦ where this page comes from