Patched to compile when SDL_ASSERT_LEVEL is zero.
--HG-- extra : rebase_source : a8a29d66692b1bba00003c017c1e3785ce008780
This commit is contained in:
parent
fa5fe44bc0
commit
02c860852a
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,6 @@ disable assertions.
|
||||||
#define SDL_disabled_assert(condition) \
|
#define SDL_disabled_assert(condition) \
|
||||||
do { (void) sizeof ((condition)); } while (0)
|
do { (void) sizeof ((condition)); } while (0)
|
||||||
|
|
||||||
#if (SDL_ASSERT_LEVEL > 0)
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
SDL_ASSERTION_RETRY, /**< Retry the assert immediately. */
|
SDL_ASSERTION_RETRY, /**< Retry the assert immediately. */
|
||||||
|
@ -113,6 +111,8 @@ typedef struct SDL_assert_data
|
||||||
const struct SDL_assert_data *next;
|
const struct SDL_assert_data *next;
|
||||||
} SDL_assert_data;
|
} SDL_assert_data;
|
||||||
|
|
||||||
|
#if (SDL_ASSERT_LEVEL > 0)
|
||||||
|
|
||||||
/* Never call this directly. Use the SDL_assert* macros. */
|
/* Never call this directly. Use the SDL_assert* macros. */
|
||||||
extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
|
extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
|
||||||
const char *,
|
const char *,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue