include/SDL_assert.h
changeset 3654 336f3df1578d
parent 3653 1cd9f7117b98
child 3655 1cc7f0143c12
equal deleted inserted replaced
3653:1cd9f7117b98 3654:336f3df1578d
    23 
    23 
    24 #ifndef _SDL_assert_h
    24 #ifndef _SDL_assert_h
    25 #define _SDL_assert_h
    25 #define _SDL_assert_h
    26 
    26 
    27 #ifndef SDL_ASSERT_LEVEL
    27 #ifndef SDL_ASSERT_LEVEL
    28 #if defined(_DEBUG) || defined(DEBUG) || \
    28 #ifdef SDL_DEFAULT_ASSERT_LEVEL
    29     (defined(__GNUC__) && !defined(__OPTIMIZE__))
    29 #define SDL_ASSERT_LEVEL SDL_DEFAULT_ASSERT_LEVEL
       
    30 #elif defined(_DEBUG) || defined(DEBUG) || \
       
    31       (defined(__GNUC__) && !defined(__OPTIMIZE__))
    30 #define SDL_ASSERT_LEVEL 2
    32 #define SDL_ASSERT_LEVEL 2
    31 #else
    33 #else
    32 #define SDL_ASSERT_LEVEL 1
    34 #define SDL_ASSERT_LEVEL 1
    33 #endif
    35 #endif
    34 #endif /* SDL_ASSERT_LEVEL */
    36 #endif /* SDL_ASSERT_LEVEL */