main: Make the main callback return value symbols smaller (thanks, @Lzard!).

Reference #9901.
This commit is contained in:
Ryan C. Gordon
2024-05-27 16:03:45 -04:00
parent ef5d56de51
commit 3364aff757
8 changed files with 85 additions and 85 deletions

View File

@@ -1042,7 +1042,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO | SDL_INIT_AUDIO);
if (!state) {
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
return SDL_APP_FAILURE;
}
state->window_flags |= SDL_WINDOW_RESIZABLE;
@@ -1060,13 +1060,13 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
NULL
};
SDLTest_CommonLogUsage(state, argv[0], options);
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
return SDL_APP_FAILURE;
}
i += consumed;
}
if (!SDLTest_CommonInit(state)) {
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
return SDL_APP_FAILURE;
}
if (state->audio_id) {
@@ -1088,7 +1088,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
CreateDefaultPhysicalDevice(SDL_FALSE);
CreateDefaultPhysicalDevice(SDL_TRUE);
return SDL_MAIN_CALLBACK_CONTINUE;
return SDL_APP_CONTINUE;
}
@@ -1229,7 +1229,7 @@ int SDL_AppIterate(void *appstate)
SDL_Delay(10);
}
return SDL_MAIN_CALLBACK_CONTINUE;
return SDL_APP_CONTINUE;
}
void SDL_AppQuit(void *appstate)