R: [AD] Allegro 5 new config routines, alpha 2

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


> To be able to detect all such cases i think would 
> require either
> 
>     al_is_int(name);
>     al_get_int(name, default_value);
> or
>     al_get_int(name, default_value, &error);
> or
>     al_get_int(name, default_value); /* which sets allegro_errno */
> or of course
>     al_get_int(name, &error);
>     al_get_int_default(name, default_value);

Currently you can use al_get_type(key); to get the variable type. And
the al_get_* functions work like this:

al_get_int(default_value, key);

Without reporting any error. Other than setting allegro_errno on error,
do you think it would be useful to store an error message in key "error"
or "config/error"?

--
Angelo Mottola
a.mottola@xxxxxxxxxx
http://www.ecplusplus.com



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