瀏覽代碼

Added SDL_assert_always (never disabled).

Ryan C. Gordon 12 年之前
父節點
當前提交
094a72b8f7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/SDL_assert.h

+ 3 - 0
include/SDL_assert.h

@@ -165,6 +165,9 @@ extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
 #   error Unknown assertion level.
 #   error Unknown assertion level.
 #endif
 #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)(
 typedef SDL_assert_state (SDLCALL *SDL_AssertionHandler)(
                                  const SDL_assert_data* data, void* userdata);
                                  const SDL_assert_data* data, void* userdata);