Re: [AD] error reporting

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2009-04-15, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> Milan Mimica wrote:
> > How do we report errors in A5? For example, there ia a gazillion of reasons why 
> > a al_create_display() may fail. How do we tell the user why it failed?
> > 
> 
> Is al_set_errno() not enough?

I can see that it wouldn't be enough.  The available errno codes are
mostly related to memory/disk/networking and not specific enough for
graphics/sound.

Probably we will need something like allegro_message, but thread-local.
Would it be set every time al_set_errno() is called, like _al_set_error
in kcm_audio?

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/