Commit d4637e7a authored by Sam Lantinga's avatar Sam Lantinga

Added test of the assertion reporting system

parent b94f23a4
...@@ -172,6 +172,16 @@ TestAssertions(SDL_bool verbose) ...@@ -172,6 +172,16 @@ TestAssertions(SDL_bool verbose)
SDL_assert_release(0 && "This is a test"); SDL_assert_release(0 && "This is a test");
#endif #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); return (0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment