Added SDL_assert_always (never disabled).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2013 14:17:48 -0400
changeset 7664 6995a81e065a
parent 7663 53fe1b64eb2d
child 7665 4c0a6cfe27a0
Added SDL_assert_always (never disabled).
include/SDL_assert.h
--- a/include/SDL_assert.h	Tue Aug 20 20:34:40 2013 -0300
+++ b/include/SDL_assert.h	Tue Aug 20 14:17:48 2013 -0400
@@ -165,6 +165,9 @@
 #   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);