Method: Cbc_wrapper.Cbc_clone

Defined in:
ext/cbc-wrapper/cbc_wrap.c

.Cbc_clone(*args) ⇒ Object



3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
# File 'ext/cbc-wrapper/cbc_wrap.c', line 3751

SWIGINTERN VALUE
_wrap_Cbc_clone(int argc, VALUE *argv, VALUE self) {
  Cbc_Model *arg1 = (Cbc_Model *) 0 ;
  int res1 ;
  Cbc_Model *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",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_clone", 1, argv[0] )); 
  }
  result = (Cbc_Model *)Cbc_clone(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}