ext/oboe_metal/src/oboe_wrap.cxx in oboe-2.3.4.1 vs ext/oboe_metal/src/oboe_wrap.cxx in oboe-2.4.0.1
- old
+ new
@@ -2027,13 +2027,23 @@
}
return res;
}
+ #define SWIG_From_long LONG2NUM
+SWIGINTERNINLINE VALUE
+SWIG_From_int (int value)
+{
+ return SWIG_From_long (value);
+}
+
+
+
+
/*@SWIG:/usr/share/swig2.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
@@ -2058,20 +2068,10 @@
}
}
return SWIG_TypeError;
}
-
- #define SWIG_From_long LONG2NUM
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
-}
-
swig_class SwigClassMetadata;
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Metadata_allocate(VALUE self) {
@@ -2302,11 +2302,11 @@
SWIGINTERN VALUE
_wrap_Context_sampleRequest(int argc, VALUE *argv, VALUE self) {
std::string arg1 ;
std::string arg2 ;
std::string arg3 ;
- bool result;
+ int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
@@ -2335,11 +2335,11 @@
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 3, argv[2] ));
}
arg3 = *ptr;
if (SWIG_IsNewObj(res)) delete ptr;
}
- result = (bool)Context::sampleRequest(arg1,arg2,arg3);
- vresult = SWIG_From_bool(static_cast< bool >(result));
+ result = (int)Context::sampleRequest(arg1,arg2,arg3);
+ vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}