[Solved]SDL_GetError
Posted: Sun May 10, 2009 7:44 pm
If anyone uses this function, can you show me a small example of how to use it? I know it returns a NULL terminated string, but I'm not exactly sure how to go about using it.
My best guess would be something like:
and put that after pretty much everything, like initializing, loading and optimizing images, loading texts, etc.
But that seems inefficient to me, and it just seems like there's a better way to go about doing it.
So if anyone knows a better way (which I'm sure someone does) please let me in on it =)
My best guess would be something like:
Code: Select all
SDL_Surface* errorMessage=SDL_GetError();
But that seems inefficient to me, and it just seems like there's a better way to go about doing it.
So if anyone knows a better way (which I'm sure someone does) please let me in on it =)