2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
|
# File 'ext/cbc-wrapper/cbc_wrap.c', line 2889
SWIGINTERN VALUE
_wrap_Cbc_setProblemName(int argc, VALUE *argv, VALUE self) {
Cbc_Model *arg1 = (Cbc_Model *) 0 ;
char *arg2 = (char *) 0 ;
int res1 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int result;
VALUE vresult = Qnil;
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_setProblemName", 1, argv[0] ));
}
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Cbc_setProblemName", 2, argv[1] ));
}
arg2 = (char *)(buf2);
result = (int)Cbc_setProblemName(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|