[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]
Reinier Post <rp@xxxxxxxxxx> writes:
> No, the gist of it is that DEBUG is *not* !NDEBUG, but instead, is used
> as an integer for debug levels used in explicit #ifs in the code, while
> NDEBUG has the specific, ANSI-mandated function to turn assert()s off.
> Something like
>
> #define NDEBUG (DEBUG < DEBUG_LEVEL_FROM_WHICH_WE_WANT_ASSERTS)
>
> seems reasonable, but I haven't found anything that mandates or
> advises this.
Err... no. if NDEBUG is defined (regardless of value) asserts are
turned off.
-Eric
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), (continued)
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/03
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Ben Webb, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Jason Short, 2002/02/04
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/05
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/05
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/05
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216),
Eric E Moore <=
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Reinier Post, 2002/02/05
- [Freeciv-Dev] Re: warnings when compiling with NDEBUG (PR#1216), Raimar Falke, 2002/02/05
|
|