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

@@ -63,7 +63,7 @@ int SDL_AppIterate(void *appstate)
}
SDL_RenderPresent(renderer);
}
return SDL_MAIN_CALLBACK_CONTINUE;
return SDL_APP_CONTINUE;
}
int SDL_AppInit(void **appstate, int argc, char *argv[]) {
@@ -74,7 +74,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) {
/* Initialize test framework */
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
if (!state) {
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
return SDL_APP_FAILURE;
}
/* Enable standard application logging */
@@ -107,10 +107,10 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) {
*appstate = dialog;
dialog->state = state;
return SDL_MAIN_CALLBACK_CONTINUE;
return SDL_APP_CONTINUE;
onerror:
SDLTest_CommonQuit(state);
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
return SDL_APP_FAILURE;
}
void SDL_AppQuit(void *appstate)