ext/swig_wrap.cin in ruby-vpi-16.0.1 vs ext/swig_wrap.cin in ruby-vpi-17.0.0
- old
+ new
@@ -5908,32 +5908,30 @@
SWIGINTERN VALUE
_wrap_vpi_vprintf(int argc, VALUE *argv, VALUE self) {
PLI_BYTE8 *arg1 = (PLI_BYTE8 *) 0 ;
- int arg2 ;
+ void *arg2 = (void *) 0 ;
PLI_INT32 result;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
+ int res2 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vpi_vprintf" "', argument " "1"" of type '" "PLI_BYTE8 *""'");
}
arg1 = (PLI_BYTE8 *)(buf1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vpi_vprintf" "', argument " "2"" of type '" "int""'");
- }
- arg2 = (int)(val2);
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_vprintf" "', argument " "2"" of type '" "void *""'");
+ }
result = (PLI_INT32)vpi_vprintf(arg1,arg2);
vresult = SWIG_From_int((int)(result));
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return vresult;
fail:
@@ -5944,19 +5942,18 @@
SWIGINTERN VALUE
_wrap_vpi_mcd_vprintf(int argc, VALUE *argv, VALUE self) {
PLI_UINT32 arg1 ;
PLI_BYTE8 *arg2 = (PLI_BYTE8 *) 0 ;
- int arg3 ;
+ void *arg3 = (void *) 0 ;
PLI_INT32 result;
unsigned int val1 ;
int ecode1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
+ int res3 ;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
@@ -5968,14 +5965,13 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_mcd_vprintf" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
}
arg2 = (PLI_BYTE8 *)(buf2);
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vpi_mcd_vprintf" "', argument " "3"" of type '" "int""'");
- }
- arg3 = (int)(val3);
+ res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vpi_mcd_vprintf" "', argument " "3"" of type '" "void *""'");
+ }
result = (PLI_INT32)vpi_mcd_vprintf(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail: