SDL
2.0
|
Go to the source code of this file.
Functions | |
int | SDLTest_TrackAllocations () |
Start tracking SDL memory allocations. More... | |
void | SDLTest_LogAllocations () |
Print a log of any outstanding allocations. More... | |
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
Definition in file SDL_test_memory.h.
void SDLTest_LogAllocations | ( | ) |
Print a log of any outstanding allocations.
Definition at line 222 of file SDL_test_memory.c.
References ADD_LINE, SDL_tracked_allocation::next, NULL, SDL_arraysize, SDL_Log, SDL_malloc_orig, SDL_PRIx64, SDL_snprintf, SDL_strlcpy, SDL_tracked_allocation::size, SDL_tracked_allocation::stack, and SDL_tracked_allocation::stack_names.
Referenced by SDLTest_CommonQuit().
int SDLTest_TrackAllocations | ( | ) |
Start tracking SDL memory allocations.
Definition at line 197 of file SDL_test_memory.c.
References s_previous_allocations, SDL_calloc_orig, SDL_free_orig, SDL_GetMemoryFunctions, SDL_GetNumAllocations, SDL_Log, SDL_malloc_orig, SDL_realloc_orig, SDL_SetMemoryFunctions, SDLTest_Crc32Init(), SDLTest_TrackedCalloc(), SDLTest_TrackedFree(), SDLTest_TrackedMalloc(), and SDLTest_TrackedRealloc().
Referenced by SDLTest_CommonCreateState().