SDL_GetNumAllocations returns -1 when allocation counting is disabled

This commit is contained in:
Anonymous Maarten authored and Sam Lantinga committed 2024-12-22 12:20:04 -08:00
1 parent a33144fbc9
commit f8d8bf8066
3 files changed
+15 -19

No files matched your search

+2 -1
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.
*