testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.
This commit is contained in:
1 parent
ec053ec4f8
commit
c101e719fd
31 files changed
+123
-41
No files matched your search
+4
-1
@@ -38,7 +38,10 @@ quit(int rc)
|
||||
{
|
||||
SDL_free(sprites);
|
||||
SDLTest_CommonQuit(state);
|
||||
exit(rc);
|
||||
/* Let 'main()' return normally */
|
||||
if (rc != 0) {
|
||||
exit(rc);
|
||||
}
|
||||
}
|
||||
|
||||
static int LoadSprite(const char *file)
|
||||
|
||||
Reference in new issue
Block a user