src/SDL_assert.c
changeset 8167 82ec2a95e664
parent 8149 681eb46b8ac4
child 8583 fb2933ca805f
     1.1 --- a/src/SDL_assert.c	Mon Feb 03 23:08:53 2014 -0500
     1.2 +++ b/src/SDL_assert.c	Tue Feb 04 11:38:40 2014 -0500
     1.3 @@ -366,4 +366,17 @@
     1.4      triggered_assertions = NULL;
     1.5  }
     1.6  
     1.7 +SDL_AssertionHandler SDL_GetDefaultAssertionHandler(void)
     1.8 +{
     1.9 +    return SDL_PromptAssertion;
    1.10 +}
    1.11 +
    1.12 +SDL_AssertionHandler SDL_GetAssertionHandler(void **userdata)
    1.13 +{
    1.14 +    if (userdata != NULL) {
    1.15 +        *userdata = assertion_userdata;
    1.16 +    }
    1.17 +    return assertion_handler;
    1.18 +}
    1.19 +
    1.20  /* vi: set ts=4 sw=4 expandtab: */