bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] qualify constants as const


From: Samuel Thibault
Subject: Re: [PATCH 1/2] qualify constants as const
Date: Wed, 11 Sep 2013 23:05:44 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Tue 10 Sep 2013 10:38:04 +0200, a écrit :
>  #if  DEBUG
> -int cb_check_enable = 0;
> +const int cb_check_enable = 0;

I'd rather not.

It is useful to be able to modify the value "live" from the debugger, so
as to enable the check only for some time while debugging.

>  #define      CB_CHECK(cb) if (cb_check_enable) cb_check(cb)
>  
>  void
> -- 
> 1.8.1.4
> 
> 



reply via email to

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