[Gridflow-cvs] [svn] commit: r3571 - in /trunk: base/grid.h rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Apr 16 18:16:35 EDT 2008


Author: matju
Date: Wed Apr 16 18:16:34 2008
New Revision: 3571

Log:
add pd2ruby function

Modified:
    trunk/base/grid.h
    trunk/rubyext.c

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Wed Apr 16 18:16:34 2008
@@ -990,5 +990,6 @@
 extern std::map<Ruby,FClass2 *> fclasses_ruby;
 int handle_braces(int ac, t_atom *av);
 void ruby2pd (int argc, Ruby *argv, t_atom *at);
+void pd2ruby (int argc, Ruby *argv, t_atom *at);
 
 #endif // __GF_GRID_H

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Wed Apr 16 18:16:34 2008
@@ -179,6 +179,10 @@
 		return a;
 	}
 	return Qnil; /* unknown */
+}
+
+void pd2ruby (int argc, Ruby *argv, t_atom *at) {
+	for (int i=0; i<argc; i++) argv[i] = Bridge_import_value(&at[i]);
 }
 
 static Ruby BFObject_method_missing_1 (FMessage *fm) {



More information about the Gridflow-cvs mailing list