[Gridflow-cvs] [svn] commit: r5628 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue May 11 14:41:16 EDT 2010


Author: matju
Date: Tue May 11 14:41:15 2010
New Revision: 5628

Log:
method _n_foo now with lower priority than _0_foo _1_foo etc

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Tue May 11 14:41:15 2010
@@ -585,16 +585,12 @@
 	for (int i=0; i<ac; i++) argv[i+1] = at[i];
 	int argc = handle_braces(ac,argv+1);
 	SETFLOAT(argv+0,winlet);
+	FMethod m;
 	char buf[256];
-	sprintf(buf,"_n_%s",selector->s_name);
-	FMethod m;
-	m = funcall_lookup(bself,buf);
-	if (m) {m(bself->self,argc+1,argv); return;}
-	sprintf(buf,"_%d_%s",winlet,selector->s_name);
-	m = funcall_lookup(bself,buf);
-	if (m) {m(bself->self,argc,argv+1); return;}
-	m = funcall_lookup(bself,"anything");
-	if (m) {SETSYMBOL(argv+0,gensym(buf)); m(bself->self,argc+1,argv); return;}
+
+	sprintf(buf,"_%d_%s",winlet,selector->s_name); m=funcall_lookup(bself,buf); if (m) {m(bself->self,argc  ,argv+1); return;}
+	sprintf(buf,"_n_%s",selector->s_name);         m=funcall_lookup(bself,buf); if (m) {m(bself->self,argc+1,argv  ); return;}
+	m = funcall_lookup(bself,"anything");        if (m) {SETSYMBOL(argv+0,gensym(buf)); m(bself->self,argc+1,argv  ); return;}
 	pd_error((t_pd *)bself, "method '%s' not found for inlet %d in class '%s'",selector->s_name,winlet,pd_classname(bself));
     } catch (Barf &oozy) {oozy.error(bself);}
 }



More information about the Gridflow-cvs mailing list