Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 16 Dec 2010 11:41:41 +0000 (11:41 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 16 Dec 2010 11:41:41 +0000 (11:41 +0000)
swig/comedi.i

index b25441b109fc2ae99cae23c73fc2dabf9b19bd22..581997542927fd31cd2e0d03c220377774cfa600 100644 (file)
@@ -57,9 +57,11 @@ static unsigned int cr_aref(unsigned int a){
 
 %array_class(unsigned int, chanlist);
 
-%typemap(ruby, argout) comedi_cmd *INOUT(VALUE info) {
+#ifdef SWIGRUBY
+%typemap(argout) comedi_cmd *INOUT(VALUE info) {
     $result = output_helper($result, $arg);
 };
+#endif
 
 %include "comedi.h"
 %include "comedilib.h"