SDL error checking.
How much do you do it? Do you error check unrecoverable errors? If you error check each function, your code looks as bad as DX code.
Not giving is not stealing.
a lot of people jsut don't check for errors except for a few of the major functions.
Generally, things just work, so people get lazy about that sort of thing.
Generally, things just work, so people get lazy about that sort of thing.
July 25, 2004 06:19 PM
Quote: If you error check each function, your code looks as bad as DX code
not really, you just have to know what to check. SDL has the function SDL_GetError() which you can use to either trap errors or determine what they are.
Quote: Generally, things just work, so people get lazy about that sort of thing
pretty much. i'm not bashing sdl, but if something goes wrong a) its almost always obvious and b) its almost always simple c) its almost always your fault. since sdl has only a few basic data types that need to be messed with, the list of disasters waiting to happen is relatively short.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement