Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17809
Modified Files:
Tag: desiredata
desire.h
Log Message:
fix clip function template
Index: desire.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.h,v
retrieving revision 1.1.2.49.2.29
retrieving revision 1.1.2.49.2.30
diff -C2 -d -r1.1.2.49.2.29 -r1.1.2.49.2.30
*** desire.h 9 Jul 2007 19:56:32 -0000 1.1.2.49.2.29
--- desire.h 13 Jul 2007 18:57:13 -0000 1.1.2.49.2.30
***************
*** 327,331 ****
template <class T> static T min(T a, T b) {return a<b?a:b;}
template <class T> static T max(T a, T b) {return a>b?a:b;}
! template <class T> T clip(T a, T b, T c) {return min(max(a,b),b);}
#endif
#endif /* __DESIRE_H */
--- 327,336 ----
template <class T> static T min(T a, T b) {return a<b?a:b;}
template <class T> static T max(T a, T b) {return a>b?a:b;}
! template <class T> T clip(T a, T b, T c) {return min(max(a,b),c);}
#endif
+
+ #define L post("%s:%d in %s",__FILE__,__LINE__,__PRETTY_FUNCTION__);
+ #define LS printf("%s:%d in %s (self=%lx\n",__FILE__,__LINE__,__PRETTY_FUNCTION__,(long)self);\
+ printf("class=%s)\n",((t_gobj *)self)->_class->c_name->name);
+
#endif /* __DESIRE_H */