[Freeciv-Dev] (PR#6380) remove is_real and is_valid sanity variables
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
[jdorje - Fri Oct 3 19:32:07 2003]:
> John Wheeler wrote:
> > [jdorje - Thu Oct 2 23:47:02 2003]:
> >
> >
> >>Most places in the code use this form:
> >>
> >> if (!normalize_map_pos(&x, &y)) {
> >> assert(0);
> >> }
> >
> >
> > Hmm... for a quick solution, would "assert(normalize_map_pos(&x,
&y);"
> > work?
>
> No, it absolutely would not. Anything include in the assertion is
not
> compiled at all if debugging is not used.
What the heck!?!
... searching assert.h ...
#ifdef NDEBUG
#define assert(x) (x)
#else
....
[Freeciv-Dev] (PR#6380) remove is_real and is_valid sanity variables, John Wheeler, 2003/10/06
[Freeciv-Dev] (PR#6380) remove is_real and is_valid sanity variables,
Guest <=
|
|