Patched to compile when SDL_ASSERT_LEVEL is zero.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 18 Dec 2012 06:35:49 -0500
changeset 6761 dacf27c78462
parent 6760 04dcce3081e6
child 6762 c680e085a5f2
Patched to compile when SDL_ASSERT_LEVEL is zero.
include/SDL_assert.h
--- a/include/SDL_assert.h	Sun Dec 16 21:59:29 2012 -0800
+++ b/include/SDL_assert.h	Tue Dec 18 06:35:49 2012 -0500
@@ -91,8 +91,6 @@
 #define SDL_disabled_assert(condition) \
     do { (void) sizeof ((condition)); } while (0)
 
-#if (SDL_ASSERT_LEVEL > 0)
-
 typedef enum
 {
     SDL_ASSERTION_RETRY,  /**< Retry the assert immediately. */
@@ -113,6 +111,8 @@
     const struct SDL_assert_data *next;
 } SDL_assert_data;
 
+#if (SDL_ASSERT_LEVEL > 0)
+
 /* Never call this directly. Use the SDL_assert* macros. */
 extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
                                                              const char *,