Get a list of all assertion failures.
Defined in SDL_assert.h
const SDL_AssertData * SDL_GetAssertionReport(void);
(const SDL_AssertData *) Returns a list of all failed assertions or NULL if the list is empty. This memory should not be modified or freed by the application.
This function gets all assertions triggered since the last call to SDL_ResetAssertionReport(), or the start of the program.
The proper way to examine this data looks something like this:
const SDL_AssertData *item = SDL_GetAssertionReport();
while (item) {
"'%s', %s (%s:%d), triggered %u times, always ignore: %s.\\n",
printf(
item->condition, item->function, item->filename,
item->linenum, item->trigger_count,"yes" : "no");
item->always_ignore ?
item = item->next; }
This function is available since SDL 2.0.0.