From 094a72b8f78b27ea7f9a93a54552fbe7e435c64f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 20 Aug 2013 14:17:48 -0400 Subject: [PATCH] Added SDL_assert_always (never disabled). --- include/SDL_assert.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index 5a6afc5e2bbd2..53ee9ba74182e 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -165,6 +165,9 @@ extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *, # error Unknown assertion level. #endif +/* this assertion is never disabled at any level. */ +#define SDL_assert_always(condition) SDL_enabled_assert(condition) + typedef SDL_assert_state (SDLCALL *SDL_AssertionHandler)( const SDL_assert_data* data, void* userdata);