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