198242
198243
198244
198245
198246
198247
198248
198249
198250
198251
198252
198253
198254
198255
198256
198257
198258
198259
198260
198261
198262
198263
198264
198265
198266
198267
198268
198269
198270
198271
198272
198273
198274
198275
198276
198277
198278
198279
198280
198281
|
# File 'ext/ctp/ctp.cxx', line 198242
SWIGINTERN VALUE
_wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByFutureManual(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ;
CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcTraderSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromBankToFutureByFutureManual", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromBankToFutureByFutureManual", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByFutureManual(arg2);
} else {
(arg1)->OnRtnRepealFromBankToFutureByFutureManual(arg2);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|