test/testplatform.c
changeset 5542 882871b2db1a
parent 5535 96594ac5fd1a
child 5638 198383360618
equal deleted inserted replaced
5541:b63f1383f8c9 5542:882871b2db1a
   170     SDL_assert_release(1 == 2);
   170     SDL_assert_release(1 == 2);
   171     SDL_assert_release(5 < 4);
   171     SDL_assert_release(5 < 4);
   172     SDL_assert_release(0 && "This is a test");
   172     SDL_assert_release(0 && "This is a test");
   173 #endif
   173 #endif
   174 
   174 
       
   175     {
       
   176         const SDL_assert_data *item = SDL_GetAssertionReport();
       
   177         while (item) {
       
   178             printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
       
   179                 item->condition, item->function, item->filename,
       
   180                 item->linenum, item->trigger_count,
       
   181                 item->always_ignore ? "yes" : "no");
       
   182             item = item->next;
       
   183         }
       
   184     }
   175     return (0);
   185     return (0);
   176 }
   186 }
   177 
   187 
   178 int
   188 int
   179 main(int argc, char *argv[])
   189 main(int argc, char *argv[])