184868
184869
184870
184871
184872
184873
184874
184875
184876
184877
184878
184879
184880
184881
184882
184883
184884
184885
184886
184887
184888
184889
184890
184891
184892
184893
184894
|
# File 'ext/ctp/ctp.cxx', line 184868
SWIGINTERN VALUE
_wrap_CThostFtdcCancelAccountField_Gender_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ;
TThostFtdcGenderType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcCancelAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Gender", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcGenderType >(val2);
if (arg1) (arg1)->Gender = arg2;
return Qnil;
fail:
return Qnil;
}
|