Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile when SDL_ASSERT_LEVEL is zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 18, 2012
1 parent b6c7d8a commit a8fc8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_assert.h
Expand Up @@ -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. */
Expand All @@ -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 *,
Expand Down

0 comments on commit a8fc8b8

Please sign in to comment.