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 /** |