[PD-dev] [pd-cvs]: externals/ggee/gui envgen.c, 1.10, 1.11 (Hans-Christoph Steiner)

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jul 4 12:59:38 CEST 2007


pd-cvs-request at iem.at wrote:
> Log Message:
> added error report to [sustain( message
> 
> --- 203,209 ----
>   {
>        if (f > 0 && f < x->last_state) 
> !         x->sustain_state = f;
> !      else
> !         post("ERROR: sustain value not betweem 0 and %f",x->last_state);
>   }
>   

tip of the day:
there are 2 dedicated error-reporting messages in pd: error("%s",...)
and pd_error(x, "%s",...) which should be used instead of post("ERROR:
%s",...)
the 2nd one being especially cool, as it allows to find the object that
threw the error.


vfg.mfg.fasr
IOhannes




More information about the Pd-dev mailing list