Code cleanup and improvements

This commit is contained in:
Dimitris Panokostas 2017-02-02 23:19:09 +01:00
parent ecd66f59c2
commit 54e28e4bf5
5 changed files with 13 additions and 3 deletions

View file

@ -640,9 +640,9 @@ void virtualdevice_init()
// In case of error, print the error code and close the application
void check_error_sdl(bool check, const char* message) {
if (check) {
std::cout << message << " " << SDL_GetError() << std::endl;
cout << message << " " << SDL_GetError() << endl;
SDL_Quit();
std::exit(-1);
exit(-1);
}
}