Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make SDL_SetError and friends unconditionally return -1.

This lets us change things like this...

    if (Failed) {
        SDL_SetError("We failed");
        return -1;
    }

...into this...

    if (Failed) {
        return SDL_SetError("We failed");
    }


 Fixes Bugzilla #1778.
  • Loading branch information
icculus committed Mar 31, 2013
1 parent a979ef0 commit 8163efd819129d1a40afcfee5696c42e41252b35

File 52 of 106 in 8163efd

@@ -28,8 +28,7 @@
int
SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
{
SDL_SetError("Threads are not supported on this platform");
return (-1);
return SDL_SetError("Threads are not supported on this platform");
}

void

0 comments on commit 8163efd

Please sign in to comment.