Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument.
This commit is contained in:
parent
6c6a5d5b4f
commit
5605af7eba
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue