[SDL] which version is needed?
Andreas K. Foerster
list at akfoerster.de
Sun Jul 8 23:02:59 PDT 2007
Am Wednesday, dem 27. Jun 2007 schrieb Sam Lantinga:
> > Also I find it annoying that SDL_iconv can output several different error codes,
> > in contrast to the default iconv implementation.
>
> > Is there a more elegant way to check for an error?
>
> Hmm, that is kind of annoying. Maybe we can have you pass a pointer to an error code? That would be a 1.3 API change though...
Sorry for the late answer.
Why not stay compatible with other implementations?
That is _one_ dedicated result for errors and a separate variable "SDL_errno" for the error
code.
To define it as (size_t)(-1) is fine even when size_t is unsigned. Then it is the maximum value.
But having just one single value for errors makes checking simpler.
--
AKFoerster
More information about the SDL
mailing list