diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2011-04-19 14:12:56 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2011-04-19 14:12:56 -0400 |
commit | 1b953ac71466b5d04fffbda62dc91d927abc81ca (patch) | |
tree | c8c3475c56d0aa2b6638b1812bd82041cdcc68c4 /include/SDL_assert.h | |
parent | 4b0ddc8d7c20d514c431494184373f511962326d (diff) |
Removed assertion list terminator (just do it like a normal linked list).
Diffstat (limited to 'include/SDL_assert.h')
-rw-r--r-- | include/SDL_assert.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/SDL_assert.h b/include/SDL_assert.h index 13e3163518..d55e244146 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -205,7 +205,7 @@ extern DECLSPEC void SDLCALL SDL_SetAssertionHandler( * * <code> * const SDL_assert_data *item = SDL_GetAssertionReport(); - * while (item->condition) { + * while (item) { * printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n", * item->condition, item->function, item->filename, * item->linenum, item->trigger_count, @@ -214,8 +214,7 @@ extern DECLSPEC void SDLCALL SDL_SetAssertionHandler( * } * </code> * - * \return List of all assertions. This never returns NULL, - * even if there are no items. + * \return List of all assertions. * \sa SDL_ResetAssertionReport */ extern DECLSPEC const SDL_assert_data * SDLCALL SDL_GetAssertionReport(void); |