From: Ian Abbott Date: Thu, 16 Dec 2010 11:41:41 +0000 (+0000) Subject: Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5605af7eba87c0877b94ca709bc76ef46a516b79;p=comedilib.git Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument. --- 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"