mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 17:07:39 +00:00
SDL_test: use SDLCALL calling convention
This is needed when using a pre-built static SDL3_test library.
This commit is contained in:
parent
379aea5c2d
commit
db96ddca34
38 changed files with 444 additions and 452 deletions
|
@ -20,7 +20,7 @@ static int g_timerCallbackCalled = 0;
|
|||
|
||||
/* Fixture */
|
||||
|
||||
static void timerSetUp(void **arg)
|
||||
static void SDLCALL timerSetUp(void **arg)
|
||||
{
|
||||
/* Start SDL timer subsystem */
|
||||
SDL_bool ret = SDL_InitSubSystem(SDL_INIT_TIMER);
|
||||
|
@ -36,7 +36,7 @@ static void timerSetUp(void **arg)
|
|||
/**
|
||||
* Call to SDL_GetPerformanceCounter
|
||||
*/
|
||||
static int timer_getPerformanceCounter(void *arg)
|
||||
static int SDLCALL timer_getPerformanceCounter(void *arg)
|
||||
{
|
||||
Uint64 result;
|
||||
|
||||
|
@ -50,7 +50,7 @@ static int timer_getPerformanceCounter(void *arg)
|
|||
/**
|
||||
* Call to SDL_GetPerformanceFrequency
|
||||
*/
|
||||
static int timer_getPerformanceFrequency(void *arg)
|
||||
static int SDLCALL timer_getPerformanceFrequency(void *arg)
|
||||
{
|
||||
Uint64 result;
|
||||
|
||||
|
@ -64,7 +64,7 @@ static int timer_getPerformanceFrequency(void *arg)
|
|||
/**
|
||||
* Call to SDL_Delay and SDL_GetTicks
|
||||
*/
|
||||
static int timer_delayAndGetTicks(void *arg)
|
||||
static int SDLCALL timer_delayAndGetTicks(void *arg)
|
||||
{
|
||||
const int testDelay = 100;
|
||||
const int marginOfError = 25;
|
||||
|
@ -126,7 +126,7 @@ static Uint32 SDLCALL timerTestCallback(void *param, SDL_TimerID timerID, Uint32
|
|||
/**
|
||||
* Call to SDL_AddTimer and SDL_RemoveTimer
|
||||
*/
|
||||
static int timer_addRemoveTimer(void *arg)
|
||||
static int SDLCALL timer_addRemoveTimer(void *arg)
|
||||
{
|
||||
#ifdef SDL_PLATFORM_EMSCRIPTEN
|
||||
SDLTest_Log("Timer callbacks on Emscripten require a main loop to handle events");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue