Re: [AD] Rationale behind al_lock_bitmap* parameters

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


On 2008-12-26, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Fri, December 26, 2008 9:27 am, Elias Pschernig said:
> >> In my mind, the function signature should look like this for the
> >> al_lock_bitmap function:
> >>
> >> ALLEGRO_LOCKED_REGION *al_lock_bitmap(ALLEGRO_BITMAP *bitmap, int
> >> flags)
> >
> > Well, make it:
> >
> > ALLEGRO_LOCKED_REGION const *al_lock_bitmap(ALLEGRO_BITMAP *bitmap, int
> > flags)
> 
> Why not just return a non-pointer like we do with ALLEGRO_COLOR?

How do you indicate failure?

Peter





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