Patched to compile when SDL_ASSERT_LEVEL is zero.

This commit is contained in:
Ryan C. Gordon
2012-12-18 06:35:49 -05:00
parent 814c962e9f
commit 7007dc6ac2

View File

@@ -91,8 +91,6 @@ disable assertions.
#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 @@ typedef struct SDL_assert_data
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 *,