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