Re: [AD] Bug with transparent ellipses

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


On Sun, 2006-09-03 at 19:08 -0400, Jon Rafkind wrote:   
> Ok, but with your patch doesnt it automatically use al_assert whereas
> al_assert is only turned on when DEBUGMODE is enabled?
> 
> #ifdef DEBUGMODE
>    #define ASSERT(condition)     { if (!(condition)) al_assert(__FILE__,
> __LINE__); }
>    #define TRACE                 al_trace
> #else
>    #define ASSERT(condition)
>    #define TRACE                 1 ? (void) 0 : al_trace
> #endif
> 
> so the code would somehow have to use ASSERT(color_map), right?
> 

I added an #ifdef DEBUGMODE with the patch, so without DEBUGMODE, the
old macro should get used.

-- 
Elias Pschernig





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