Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)
Home

[Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 08:21:32 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Feb 04, 2002 at 08:13:38PM -0500, Jason Short wrote:
> Reinier Post wrote:
> 
> The gist of all that seems to be that DEBUG == !NDEBUG.  This is not the 
> case in FreeCiv: there is the additional case where neither DEBUG nor 
> NDEBUG are defined.

> My preference would be to drop this third case.  Then either NDEBUG 
> would be defined xor DEBUG would be defined.  configure would take 
> either --enable-debug=yes or --enable-debug=no.

No. There is a speed difference between <nothing> and DEBUG. For
example freelog(LOG_DEBUG,...) is removed in the <nothing> case while
it will be a function call with DEBUG.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "From what I am reading Win98 and NT5.0 will be getting rid of all that
  crap anyway. Seems that Microsoft has invented something called TCP/IP and
  another really revolutionary concept called DNS that eliminates the
  netbios crap too. All that arping from browsers is going to go away.
  I also hear rumors that they are on the verge of breakthrough discoveries
  called NFS, and LPD too. Given enough time and money, they might
  eventually invent Unix."
    -- George Bonser in linux-kernel


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