SDL_GetNumAllocations returns -1 when allocation counting is disabled

This commit is contained in:
Anonymous Maarten
2024-12-21 20:25:06 +01:00
committed by Sam Lantinga
parent a33144fbc9
commit f8d8bf8066
3 changed files with 15 additions and 19 deletions

View File

@@ -1542,7 +1542,8 @@ extern SDL_DECLSPEC void SDLCALL SDL_aligned_free(void *mem);
/**
* Get the number of outstanding (unfreed) allocations.
*
* \returns the number of allocations.
* \returns the number of allocations or
* -1 if allocation counting is disabled.
*
* \threadsafety It is safe to call this function from any thread.
*