Re: [AD] Bug with transparent ellipses |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Bug with transparent ellipses
- From: Elias Pschernig <elias@xxxxxxxxxx>
- Date: Mon, 04 Sep 2006 01:13:09 +0200
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