From: Frank Mori Hess Date: Mon, 12 Jan 2004 01:38:06 +0000 (+0000) Subject: ruby fix from steven jenkins X-Git-Tag: r0_7_22~93 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=153547a0477a66434dd9b004ffacc3b0642ee02f;p=comedilib.git ruby fix from steven jenkins --- diff --git a/swig/comedi.i b/swig/comedi.i index 4fa78e9..b67c06d 100644 --- a/swig/comedi.i +++ b/swig/comedi.i @@ -55,6 +55,10 @@ static unsigned int cr_aref(unsigned int a){ %array_class(unsigned int, chanlist); +%typemap(ruby, argout) comedi_cmd *INOUT(VALUE info) { + $result = output_helper($result, $arg); +}; + /* below are (modified) copies of comedi.h and comedilib.h */ /* comedi.h */