Added SDL_GetAssertionHandler() and SDL_GetDefaultAssertionHandler().

--HG--
extra : rebase_source : 46c4eb0b9b5aaf0f97ccf21036a0462a585b3ba8
This commit is contained in:
Ryan C. Gordon 2014-02-04 11:38:40 -05:00
parent c174c3f279
commit cd64be14c5
4 changed files with 46 additions and 0 deletions

View file

@ -366,4 +366,17 @@ void SDL_ResetAssertionReport(void)
triggered_assertions = NULL;
}
SDL_AssertionHandler SDL_GetDefaultAssertionHandler(void)
{
return SDL_PromptAssertion;
}
SDL_AssertionHandler SDL_GetAssertionHandler(void **userdata)
{
if (userdata != NULL) {
*userdata = assertion_userdata;
}
return assertion_handler;
}
/* vi: set ts=4 sw=4 expandtab: */