3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
|
# File 'ext/cbc-wrapper/cbc_wrap.c', line 3814
SWIGINTERN VALUE
_wrap_Cbc_registerCallBack(int argc, VALUE *argv, VALUE self) {
Cbc_Model *arg1 = (Cbc_Model *) 0 ;
cbc_callback arg2 = (cbc_callback) 0 ;
int res1 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Cbc_Model *","Cbc_registerCallBack", 1, argv[0] ));
}
{
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void_int_int_p_q_const__double_int_p_q_const__int_int_p_p_char__void);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "cbc_callback","Cbc_registerCallBack", 2, argv[1] ));
}
}
Cbc_registerCallBack(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|