sdlOutOfMemory function

bool sdlOutOfMemory()

Set an error indicating that memory allocation failed.

This function does not do any memory allocation.

\returns false.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_OutOfMemory(void)

Implementation

bool sdlOutOfMemory() {
  final sdlOutOfMemoryLookupFunction = libSdl3
      .lookupFunction<Uint8 Function(), int Function()>('SDL_OutOfMemory');
  return sdlOutOfMemoryLookupFunction() == 1;
}