25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
|
# File 'ext/ctp/ctp.cxx', line 25191
SWIGINTERN VALUE
_wrap_CThostFtdcDepthMarketDataField_AskPrice5_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ;
TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice5", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice5", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->AskPrice5 = arg2;
return Qnil;
fail:
return Qnil;
}
|