Mercurial > sdl-ios-xcode
comparison src/SDL_error.c @ 4867:ba7492f9e2b8
While you can actually write to the error buffer, conceptually it's read-only.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Aug 2010 12:00:09 -0700 |
parents | 3b5f4b3a69e1 |
children | be4ba07d9867 |
comparison
equal
deleted
inserted
replaced
4866:f42e8db53f78 | 4867:ba7492f9e2b8 |
---|---|
196 } | 196 } |
197 return (errstr); | 197 return (errstr); |
198 } | 198 } |
199 | 199 |
200 /* Available for backwards compatibility */ | 200 /* Available for backwards compatibility */ |
201 char * | 201 const char * |
202 SDL_GetError(void) | 202 SDL_GetError(void) |
203 { | 203 { |
204 static char errmsg[SDL_ERRBUFIZE]; | 204 static char errmsg[SDL_ERRBUFIZE]; |
205 | 205 |
206 return ((char *) SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE)); | 206 return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE); |
207 } | 207 } |
208 | 208 |
209 void | 209 void |
210 SDL_ClearError(void) | 210 SDL_ClearError(void) |
211 { | 211 { |