src/SDL_error.c
changeset 1824 e25445333ccf
parent 1818 7995cc87b777
child 1847 845bcffc0dd8
equal deleted inserted replaced
1823:d2b0f8b18ab8 1824:e25445333ccf
   186 /* Available for backwards compatibility */
   186 /* Available for backwards compatibility */
   187 char *SDL_GetError (void)
   187 char *SDL_GetError (void)
   188 {
   188 {
   189 	static char errmsg[SDL_ERRBUFIZE];
   189 	static char errmsg[SDL_ERRBUFIZE];
   190 
   190 
   191 	return((char *)SDL_GetErrorMsg((unsigned char *)errmsg, SDL_ERRBUFIZE));
   191 	return((char *)SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE));
   192 }
   192 }
   193 
   193 
   194 void SDL_ClearError(void)
   194 void SDL_ClearError(void)
   195 {
   195 {
   196 	SDL_error *error;
   196 	SDL_error *error;