Mix_SetError
Name
Mix_SetError -- Sets SDL Error.
Synopsis
#include "SDL_mixer.h" void Mix_SetError(const char *fmt, ...);
Description
Mix_SetError is the same as SDL_SetError, which sets the error string which may be fetched with Mix_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.
Example
int mymixfunc(int i) {
Mix_SetError("mymixfunc is not implemented! %d was passed in.",i);
return(-1);
}
