71433
71434
71435
71436
71437
71438
71439
71440
71441
71442
71443
71444
71445
71446
71447
71448
71449
71450
71451
71452
71453
71454
71455
71456
71457
71458
71459
71460
|
# File 'ext/ctp/ctp.cxx', line 71433
SWIGINTERN VALUE
_wrap_CThostFtdcExecOrderField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[16] ;
int res2 ;
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_CThostFtdcExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActiveUserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 16);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char));
else memset(arg1->ActiveUserID,0,16*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|