include/SDL_assert.h
changeset 5541 b63f1383f8c9
parent 5538 b395a72329c3
child 5552 2167a41feefe
--- a/include/SDL_assert.h	Tue Apr 19 09:53:01 2011 -0700
+++ b/include/SDL_assert.h	Tue Apr 19 14:12:56 2011 -0400
@@ -205,7 +205,7 @@
  *
  *  <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 @@
  *  }
  *  </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);