Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Patched to compile when SDL_ASSERT_LEVEL is zero.

  • Loading branch information
icculus committed Dec 18, 2012
1 parent b6c7d8a commit a8fc8b8b7a7df2451e09c93be9a9c45b4338535b
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/SDL_assert.h
@@ -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 *,

0 comments on commit a8fc8b8

Please sign in to comment.