Errors list

Hi,

where can I find the list of SDL error messages ?

Thanks

Hi,

where can I find the list of SDL error messages ?

Poking through the code. :slight_smile:
There’s no fixed list, errors are added as needed.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Addmittedly it isn’t exhaustive, but:

find …/SDL12 -type f -name ‘*.c’ -print0 | xargs --null grep
SDL_SetError | sed -e ‘s/^.*SDL_SetError (//’ -e 's/);.$//’ | sort -u

…generates a pretty good list. :wink:

Having worked on localized versions of software, I do think that making
a easily translatable table of error messages (that is somehow
expandable by SDL libs, such as SMPEG) may be useful. I could look into
this (as a possible API extension for SDL 1.3) at some later time if
people think it is really important?

-LorenOn Thu, 2002-09-05 at 08:16, Sam Lantinga wrote:

Hi,

where can I find the list of SDL error messages ?

Poking through the code. :slight_smile:
There’s no fixed list, errors are added as needed.