SDL_OutOfMemory(3)

✨ SDL_OutOfMemory ✨

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_OutOfMemory πŸ’…


🌸 NAME 🌸

SDL_OutOfMemory β€” set an error indicating that memory allocation failed 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_error.h>

bool SDL_OutOfMemory(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: this function does not do any memory allocation. not even a little. it just sets the error, no cap 😌


πŸ’– RETURN VALUE πŸ’–

it returns false. that's it, that's the whole vibe πŸ™ˆ


πŸ”₯ THREAD SAFETY πŸ”₯

it is safe to call this function from any thread ✨ so go off, thread queen πŸ‘‘


🌈 AVAILABILITY 🌈

this function is available since SDL 3.2.0 ⭐


and that's the whole page, bestie!! tysm for reading, mwah πŸ’œ this little cutie came to you from Simple Directmedia Layer, rockin' SDL 3.4.18 β€” periodt, bye πŸŽ€

πŸ“¦ where this page comes from