18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
|
# File 'ext/ctp/ctp.cxx', line 18351
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountField_Credit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ;
TThostFtdcMoneyType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Credit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Credit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Credit = arg2;
return Qnil;
fail:
return Qnil;
}
|