Re: [AD] Config files issues

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


On Tue, Feb 12, 2002 at 11:28:23AM +0100, Sven Sandberg wrote:
> >   AL_CFG *custom_config = al_load_config_file("database/users.cfg")
> >   int value = custom_config->get_int(section, variable, default);
> 
> I don't think that will work: get_int() won't have the pointer to the
> actual AL_CFG object, unless you give it as a parameter, in which case
> we can just as well have al_get_int() as a normal function...

Very true, I noticed that too when I reread my message today, looks like
I confused for a moment C with C++. Morale: don't post after midnight :)

-- 
 Grzegorz Adam Hankiewicz   gradha@xxxxxxxxxx   http://gradha.infierno.org/



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