mirror of https://github.com/encounter/SDL.git
hide SDL_GenerateAssertionReport in case SDL_ASSERT_LEVEL is 0
otherwise SDL_PromptAssertion (and SDL_GenerateAssertionReport) can not be eliminated
This commit is contained in:
parent
a423848ea0
commit
12211df669
|
@ -411,6 +411,7 @@ SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
|
||||||
|
|
||||||
void SDL_AssertionsQuit(void)
|
void SDL_AssertionsQuit(void)
|
||||||
{
|
{
|
||||||
|
#if SDL_ASSERT_LEVEL > 0
|
||||||
SDL_GenerateAssertionReport();
|
SDL_GenerateAssertionReport();
|
||||||
#ifndef SDL_THREADS_DISABLED
|
#ifndef SDL_THREADS_DISABLED
|
||||||
if (assertion_mutex != NULL) {
|
if (assertion_mutex != NULL) {
|
||||||
|
@ -418,6 +419,7 @@ void SDL_AssertionsQuit(void)
|
||||||
assertion_mutex = NULL;
|
assertion_mutex = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* SDL_ASSERT_LEVEL > 0 */
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_SetAssertionHandler(SDL_AssertionHandler handler, void *userdata)
|
void SDL_SetAssertionHandler(SDL_AssertionHandler handler, void *userdata)
|
||||||
|
|
Loading…
Reference in New Issue