SDL 3.0
SDL_test_memory.h File Reference
+ Include dependency graph for SDL_test_memory.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SDLTest_TrackAllocations (void)
 
void SDLTest_RandFillAllocations ()
 
void SDLTest_LogAllocations (void)
 

Detailed Description

Memory tracking related functions of SDL test framework.

This code is a part of the SDL test library, not the main SDL library.

Definition in file SDL_test_memory.h.

Function Documentation

◆ SDLTest_LogAllocations()

void SDLTest_LogAllocations ( void  )

Print a log of any outstanding allocations

Note
This can be called after SDL_Quit()

◆ SDLTest_RandFillAllocations()

void SDLTest_RandFillAllocations ( )

Fill allocations with random data

Note
This implicitly calls SDLTest_TrackAllocations()

◆ SDLTest_TrackAllocations()

void SDLTest_TrackAllocations ( void  )

Start tracking SDL memory allocations

Note
This should be called before any other SDL functions for complete tracking coverage