On Jul 4, 2007, at 6:59 AM, IOhannes m zmoelnig wrote:

> [EMAIL PROTECTED] 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.

Thanks for the tip, I changed it.

.hc

>
>
> vfg.mfg.fasr
> IOhannes
>
> _______________________________________________
> PD-dev mailing list
> [email protected]
> http://lists.puredata.info/listinfo/pd-dev



------------------------------------------------------------------------ 
----

Using ReBirth is like trying to play an 808 with a long stick.    - 
David Zicarelli



_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to