mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-18 00:01:31 +00:00
Verify that the timer callback is passed the correct parameters
This commit is contained in:
@@ -62,7 +62,9 @@ ticktock(Uint32 interval, void *param)
|
|||||||
static Uint32 SDLCALL
|
static Uint32 SDLCALL
|
||||||
callback(Uint32 interval, void *param)
|
callback(Uint32 interval, void *param)
|
||||||
{
|
{
|
||||||
SDL_Log("Timer %" SDL_PRIu32 " : param = %d\n", interval, (int)(uintptr_t)param);
|
int value = (int)(uintptr_t)param;
|
||||||
|
SDL_assert( value == 1 || value == 2 || value == 3 );
|
||||||
|
SDL_Log("Timer %" SDL_PRIu32 " : param = %d\n", interval, value);
|
||||||
return interval;
|
return interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user