35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
|
# File 'ext/ctp/ctp.cxx', line 35840
SWIGINTERN VALUE
_wrap_CThostFtdcOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ;
TThostFtdcOrderSubmitStatusType 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_CThostFtdcOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSubmitStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2);
if (arg1) (arg1)->OrderSubmitStatus = arg2;
return Qnil;
fail:
return Qnil;
}
|