Added SDL_GetAssertionHandler() and SDL_GetDefaultAssertionHandler().

This commit is contained in:
Ryan C. Gordon
2014-02-04 11:38:40 -05:00
parent e6dce68f8e
commit c2b5da9733
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: */