Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-04-01 21:38:12
Size: 1278
Editor: SheenaSmith
Comment: create page - 3/29 e427bb6266a4
Revision 2 as of 2011-04-19 16:59:37
Size: 1089
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 16: Line 15:
Returns a list of all ^failed???^ assertions. This never returns NULL, even if there are no items. Returns a list of all failed assertions. This never returns NULL, even if there are no items.
Line 19: Line 18:
The proper way to examine this data looks something like this:
Line 20: Line 20:
You can add your code example here
}}}

== Remarks ==
^This function^ get^s^ all assertions triggered since ^the^ last call to [[SDL_ResetAssertionReport]](), or the start of the program.

<<Color2(green,Should this be in the Code Examples section instead?)>>

The proper way to examine this data looks something like this:
 {{{
Line 40: Line 30:
== Remarks ==
This function gets all assertions triggered since the last call to [[SDL_ResetAssertionReport]](), or the start of the program.

SDL_GetAssertionReport

Use this function to get a list of all assertion failures.

Syntax

const SDL_assert_data* SDL_GetAssertionReport(void)

Return Value

Returns a list of all failed assertions. This never returns NULL, even if there are no items.

Code Examples

The proper way to examine this data looks something like this:

const SDL_assert_data *item = SDL_GetAssertionReport();
while (item->condition) {
     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;
}

Remarks

This function gets all assertions triggered since the last call to SDL_ResetAssertionReport(), or the start of the program.


CategoryAPI, CategoryAssertions

None: SDL_GetAssertionReport (last edited 2015-02-21 10:24:23 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit