Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] (PR#6380) remove is_real and is_valid sanity variables
Home

[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]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6380) remove is_real and is_valid sanity variables
From: "Guest" <rt-guest@xxxxxxxxxxxxxx>
Date: Mon, 6 Oct 2003 19:26:20 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[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
....




[Prev in Thread] Current Thread [Next in Thread]