From 5605af7eba87c0877b94ca709bc76ef46a516b79 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 16 Dec 2010 11:41:41 +0000 Subject: [PATCH] Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument. --- swig/comedi.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swig/comedi.i b/swig/comedi.i index b25441b..5819975 100644 --- a/swig/comedi.i +++ b/swig/comedi.i @@ -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" -- 2.26.2