mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 09:48:26 +00:00
Updated SDL_TimerID to use the same type as other IDs in SDL
This commit is contained in:
parent
bc3a71d400
commit
d6a41f8f31
3 changed files with 8 additions and 12 deletions
|
@ -131,7 +131,7 @@ static int timer_addRemoveTimer(void *arg)
|
|||
/* Set timer with a long delay */
|
||||
id = SDL_AddTimer(10000, timerTestCallback, NULL);
|
||||
SDLTest_AssertPass("Call to SDL_AddTimer(10000,...)");
|
||||
SDLTest_AssertCheck(id > 0, "Check result value, expected: >0, got: %d", id);
|
||||
SDLTest_AssertCheck(id > 0, "Check result value, expected: >0, got: %" SDL_PRIu32, id);
|
||||
|
||||
/* Remove timer again and check that callback was not called */
|
||||
result = SDL_RemoveTimer(id);
|
||||
|
@ -153,7 +153,7 @@ static int timer_addRemoveTimer(void *arg)
|
|||
/* Set timer with a short delay */
|
||||
id = SDL_AddTimer(10, timerTestCallback, (void *)¶m);
|
||||
SDLTest_AssertPass("Call to SDL_AddTimer(10, param)");
|
||||
SDLTest_AssertCheck(id > 0, "Check result value, expected: >0, got: %d", id);
|
||||
SDLTest_AssertCheck(id > 0, "Check result value, expected: >0, got: %" SDL_PRIu32, id);
|
||||
|
||||
/* Wait to let timer trigger callback */
|
||||
SDL_Delay(100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue