[Gridflow-cvs] [svn] commit: r6514 - /trunk/src/source_filter.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Feb 3 19:16:06 EST 2011


Author: matju
Date: Thu Feb  3 19:16:04 2011
New Revision: 6514

Log:
support "..." (VA) and other args at the same time

Modified:
    trunk/src/source_filter.rb

Modified: trunk/src/source_filter.rb
==============================================================================
--- trunk/src/source_filter.rb (original)
+++ trunk/src/source_filter.rb Thu Feb  3 19:16:04 2011
@@ -129,6 +129,7 @@
 	else
 	  Out.print "#{m.rettype} #{m.selector2}("
 	  Out.print "VA" if m.maxargs<0
+	  Out.print "," if m.maxargs<0 and m.args.length>0
 	  Out.print unparse_args m.args if m.args.length>0
 	  Out.print "); static void #{m.selector2}_wrap(#{classname} *self, VA);"
 	end
@@ -184,6 +185,7 @@
 	Out.print classname+"::" unless in_class_block
 	Out.print m.selector2+"("
 	Out.print "VA" if m.maxargs<0
+	Out.print "," if m.maxargs<0 and m.args.length>0
 	Out.print unparse_args(n.args,false) if m.args.length>0
 	Out.print ")"+term+" "
 	qlass.methods[m.selector2].done=true



More information about the Gridflow-cvs mailing list