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

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


I've started using the routines (more on this later), and would like to make a few suggestions:

Could the second paramter in the set functions be a default value instead of an error return? I'm finding myself writting lots of:

int err = 0;
val = al_get_int("gfx/foo", &err);
if (err) {
   val = some_default;
}



Also, can we get hook functions to specific nodes that get called with the new value that was set? This is useful for state menagement. I also need it for the gfx code.


--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



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