mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 21:19:11 +00:00
testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.
This commit is contained in:
parent
ec053ec4f8
commit
c101e719fd
31 changed files with 123 additions and 41 deletions
|
@ -40,7 +40,10 @@ static void
|
|||
quit(int rc)
|
||||
{
|
||||
SDL_Quit();
|
||||
exit(rc);
|
||||
/* Let 'main()' return normally */
|
||||
if (rc != 0) {
|
||||
exit(rc);
|
||||
}
|
||||
}
|
||||
|
||||
static int done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue