Re: how to check for an event
Jonathan Dearborn <[email protected]> Wed, 15 Feb 2017 13:16:21 -0500
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+DSiHYhB-caOJL0SeyOthG07a+yScPOQrj3BFEtmWPmtCc-tQ@mail.gmail.com> |
It doesn't sound like you've actually induced an error state, but instead are printing regardless of whether or not there is an error. If there is not an actual error, you might expect SDL_GetError() to return an empty string (not sure if that is specified by the API). So you would see: SDL_Init failed: Because the %s was replaced by nothing. Jonny D On Wed, Feb 15, 2017 at 1:04 PM, speartip <[email protected]> wrote: > printf("SDL_Init failed: %s\n", SDL_GetError()) > > _______________________________________________ > SDL mailing list > [email protected] > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org > > _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org