include/SDL_assert.h
changeset 5541 b63f1383f8c9
parent 5538 b395a72329c3
child 5552 2167a41feefe
equal deleted inserted replaced
5540:918efbff8259 5541:b63f1383f8c9
   203  *
   203  *
   204  *  The proper way to examine this data looks something like this:
   204  *  The proper way to examine this data looks something like this:
   205  *
   205  *
   206  *  <code>
   206  *  <code>
   207  *  const SDL_assert_data *item = SDL_GetAssertionReport();
   207  *  const SDL_assert_data *item = SDL_GetAssertionReport();
   208  *  while (item->condition) {
   208  *  while (item) {
   209  *      printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
   209  *      printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
   210  *             item->condition, item->function, item->filename,
   210  *             item->condition, item->function, item->filename,
   211  *             item->linenum, item->trigger_count,
   211  *             item->linenum, item->trigger_count,
   212  *             item->always_ignore ? "yes" : "no");
   212  *             item->always_ignore ? "yes" : "no");
   213  *      item = item->next;
   213  *      item = item->next;
   214  *  }
   214  *  }
   215  *  </code>
   215  *  </code>
   216  *
   216  *
   217  *  \return List of all assertions. This never returns NULL,
   217  *  \return List of all assertions.
   218  *          even if there are no items.
       
   219  *  \sa SDL_ResetAssertionReport
   218  *  \sa SDL_ResetAssertionReport
   220  */
   219  */
   221 extern DECLSPEC const SDL_assert_data * SDLCALL SDL_GetAssertionReport(void);
   220 extern DECLSPEC const SDL_assert_data * SDLCALL SDL_GetAssertionReport(void);
   222 
   221 
   223 /**
   222 /**