include/SDL_assert.h
changeset 3653 1cd9f7117b98
parent 3652 dbd6a29e4b77
child 3654 336f3df1578d
     1.1 --- a/include/SDL_assert.h	Wed Jan 13 07:36:00 2010 +0000
     1.2 +++ b/include/SDL_assert.h	Wed Jan 13 07:52:53 2010 +0000
     1.3 @@ -25,8 +25,13 @@
     1.4  #define _SDL_assert_h
     1.5  
     1.6  #ifndef SDL_ASSERT_LEVEL
     1.7 -#define SDL_ASSERT_LEVEL SDL_DEFAULT_ASSERT_LEVEL
     1.8 +#if defined(_DEBUG) || defined(DEBUG) || \
     1.9 +    (defined(__GNUC__) && !defined(__OPTIMIZE__))
    1.10 +#define SDL_ASSERT_LEVEL 2
    1.11 +#else
    1.12 +#define SDL_ASSERT_LEVEL 1
    1.13  #endif
    1.14 +#endif /* SDL_ASSERT_LEVEL */
    1.15  
    1.16  /*
    1.17  sizeof (x) makes the compiler still parse the expression even without