Skip to content

Commit

Permalink
Added SDL_assert_always (never disabled).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 20, 2013
1 parent 552b04c commit 094a72b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SDL_assert.h
Expand Up @@ -165,6 +165,9 @@ extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *,
# error Unknown assertion level.
#endif

/* this assertion is never disabled at any level. */
#define SDL_assert_always(condition) SDL_enabled_assert(condition)


typedef SDL_assert_state (SDLCALL *SDL_AssertionHandler)(
const SDL_assert_data* data, void* userdata);
Expand Down

0 comments on commit 094a72b

Please sign in to comment.