mirror of
https://github.com/love2d/megasource.git
synced 2026-08-20 04:30:45 +02:00
update SDL3 to latest commit
This commit is contained in:
@@ -21,7 +21,7 @@ static void EnableTestLog(int *message_count)
|
||||
SDL_SetLogOutputFunction(TestLogOutput, message_count);
|
||||
}
|
||||
|
||||
static void DisableTestLog()
|
||||
static void DisableTestLog(void)
|
||||
{
|
||||
SDL_SetLogOutputFunction(original_function, original_userdata);
|
||||
}
|
||||
@@ -33,7 +33,7 @@ static void DisableTestLog()
|
||||
/**
|
||||
* Check SDL_HINT_LOGGING functionality
|
||||
*/
|
||||
static int log_testHint(void *arg)
|
||||
static int SDLCALL log_testHint(void *arg)
|
||||
{
|
||||
int count;
|
||||
|
||||
@@ -138,8 +138,8 @@ static int log_testHint(void *arg)
|
||||
|
||||
}
|
||||
|
||||
SDL_SetHint(SDL_HINT_LOGGING, "0=4,3=2,2=0,*=3");
|
||||
SDLTest_AssertPass("SDL_SetHint(SDL_HINT_LOGGING, \"0=4,3=2,2=0,*=3\")");
|
||||
SDL_SetHint(SDL_HINT_LOGGING, "0=5,3=3,2=0,*=4");
|
||||
SDLTest_AssertPass("SDL_SetHint(SDL_HINT_LOGGING, \"0=5,3=3,2=1,*=4\")");
|
||||
{
|
||||
EnableTestLog(&count);
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "test");
|
||||
@@ -192,7 +192,7 @@ static int log_testHint(void *arg)
|
||||
|
||||
/* Log test cases */
|
||||
static const SDLTest_TestCaseReference logTestHint = {
|
||||
(SDLTest_TestCaseFp)log_testHint, "log_testHint", "Check SDL_HINT_LOGGING functionality", TEST_ENABLED
|
||||
log_testHint, "log_testHint", "Check SDL_HINT_LOGGING functionality", TEST_ENABLED
|
||||
};
|
||||
|
||||
/* Sequence of Log test cases */
|
||||
|
||||
Reference in New Issue
Block a user