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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms