Re: [AD] al_init_font_addon has no return value

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


It _could_ fail, if you run out of memory. But all it does is register some file types
that the addon can load. So it's safe to assume it will never fail IMO. I suppose it
wouldn't hurt, though, to play it safe.

--
Trent Gamblin
Founder, Nooskewl
Web: http://www.nooskewl.com

On 2010-10-16, at 12:47 PM, Dennis-Busch@xxxxxxxxxx wrote:

> I just noticed that "al_init_font_addon" has void as the return type.
> Does that mean it can never fail or is it a bug?
> 
> All the other initialization routines seem to return a boolean to 
> signal success/failure.
> 
> Dennis





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