mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 00:56:24 -05:00
Added test of the assertion reporting system
This commit is contained in:
@@ -172,6 +172,16 @@ TestAssertions(SDL_bool verbose)
|
||||
SDL_assert_release(0 && "This is a test");
|
||||
#endif
|
||||
|
||||
{
|
||||
const SDL_assert_data *item = SDL_GetAssertionReport();
|
||||
while (item) {
|
||||
printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
|
||||
item->condition, item->function, item->filename,
|
||||
item->linenum, item->trigger_count,
|
||||
item->always_ignore ? "yes" : "no");
|
||||
item = item->next;
|
||||
}
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user