Wiki Page Content

Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2011-04-01 21:43:09
Size: 652
Editor: SheenaSmith
Comment: create page - 3/29 e427bb6266a4
Revision 4 as of 2013-07-29 05:15:34
Size: 909
Editor: RyanGordon
Comment: Added an example to SDL_ResetAssertionReport()
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to reset the list of all assertion failures. Use this function to clear the list of all assertion failures.
Line 17: Line 16:
You can add your code example here SDL_assert(1+1 == 3); // trigger an assertion.
printf("%p\n", SDL_GetAssertionReport()); // not NULL.
SDL_ResetAssertionReport();
printf("%p\n", SDL_GetAssertionReport()); // NULL.
Line 21: Line 23:
''You can add useful comments here''

^This function will clear^ ,,reset,, ^the^ list of all assertions triggered ^up to that point^.
This function will clear the list of all assertions triggered up to that point. Immediately following this call, [[SDL_GetAssertionReport]] will return no items. In addition, any previously-triggered assertions will be reset to a trigger_count of zero, and their always_ignore state will be false.

SDL_ResetAssertionReport

Use this function to clear the list of all assertion failures.

Syntax

void SDL_ResetAssertionReport(void)

Code Examples

SDL_assert(1+1 == 3);  // trigger an assertion.
printf("%p\n", SDL_GetAssertionReport());  // not NULL.
SDL_ResetAssertionReport();
printf("%p\n", SDL_GetAssertionReport());  // NULL.

Remarks

This function will clear the list of all assertions triggered up to that point. Immediately following this call, SDL_GetAssertionReport will return no items. In addition, any previously-triggered assertions will be reset to a trigger_count of zero, and their always_ignore state will be false.


CategoryAPI, CategoryAssertions

None: SDL_ResetAssertionReport (last edited 2013-07-29 05:15:34 by RyanGordon)

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