rice/detail/Auto_Function_Wrapper.ipp in rice-1.3.1 vs rice/detail/Auto_Function_Wrapper.ipp in rice-1.3.2

- old
+ new

@@ -58,79 +58,78 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14, &varg15); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); - typedef typename sanitize< Arg15_T >::Type Arg15_Type; - Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(14, varg14); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); + typedef typename sanitize< Arg15_T >::Type Arg15_Type; + Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(14, varg14); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14, &varg15); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); - typedef typename sanitize< Arg15_T >::Type Arg15_Type; - Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(15, varg15); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); + typedef typename sanitize< Arg15_T >::Type Arg15_Type; + Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(15, varg15); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)); } } catch(...) { @@ -173,12 +172,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T, Arg15_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T, Arg15_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T, Arg15_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -191,80 +189,79 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14, &varg15); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); - typedef typename sanitize< Arg15_T >::Type Arg15_Type; - Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(14, varg14); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); + typedef typename sanitize< Arg15_T >::Type Arg15_Type; + Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(14, varg14); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14, &varg15); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); - typedef typename sanitize< Arg15_T >::Type Arg15_Type; - Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(15, varg15); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); + typedef typename sanitize< Arg15_T >::Type Arg15_Type; + Arg15_Type arg15 = args->getArgumentOrDefault<Arg15_Type>(15, varg15); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15); return Qnil; } } catch(...) @@ -326,75 +323,74 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14)); } } catch(...) { @@ -437,12 +433,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T, Arg14_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -455,76 +450,75 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(13, varg13); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13, &varg14); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - typedef typename sanitize< Arg14_T >::Type Arg14_Type; - Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); + typedef typename sanitize< Arg14_T >::Type Arg14_Type; + Arg14_Type arg14 = args->getArgumentOrDefault<Arg14_Type>(14, varg14); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); return Qnil; } } catch(...) @@ -586,71 +580,70 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); } } catch(...) { @@ -693,12 +686,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T, Arg13_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -711,72 +703,71 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(12, varg12); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12, &varg13); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - typedef typename sanitize< Arg13_T >::Type Arg13_Type; - Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); + typedef typename sanitize< Arg13_T >::Type Arg13_Type; + Arg13_Type arg13 = args->getArgumentOrDefault<Arg13_Type>(13, varg13); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); return Qnil; } } catch(...) @@ -838,67 +829,66 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)); } } catch(...) { @@ -941,12 +931,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T, Arg12_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -959,68 +948,67 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(11, varg11); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11, &varg12); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - typedef typename sanitize< Arg12_T >::Type Arg12_Type; - Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); + typedef typename sanitize< Arg12_T >::Type Arg12_Type; + Arg12_Type arg12 = args->getArgumentOrDefault<Arg12_Type>(12, varg12); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); return Qnil; } } catch(...) @@ -1082,63 +1070,62 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11)); } } catch(...) { @@ -1181,12 +1168,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T, Arg11_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -1199,64 +1185,63 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(10, varg10); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10, &varg11); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - typedef typename sanitize< Arg11_T >::Type Arg11_Type; - Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); + typedef typename sanitize< Arg11_T >::Type Arg11_Type; + Arg11_Type arg11 = args->getArgumentOrDefault<Arg11_Type>(11, varg11); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); return Qnil; } } catch(...) @@ -1318,59 +1303,58 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)); } } catch(...) { @@ -1413,12 +1397,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T, Arg10_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -1431,60 +1414,59 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(9, varg9); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9, &varg10); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - typedef typename sanitize< Arg10_T >::Type Arg10_Type; - Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); + typedef typename sanitize< Arg10_T >::Type Arg10_Type; + Arg10_Type arg10 = args->getArgumentOrDefault<Arg10_Type>(10, varg10); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); return Qnil; } } catch(...) @@ -1546,55 +1528,54 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); } } catch(...) { @@ -1637,12 +1618,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T, Arg9_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -1655,56 +1635,55 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(8, varg8); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8, &varg9); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - typedef typename sanitize< Arg9_T >::Type Arg9_Type; - Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); + typedef typename sanitize< Arg9_T >::Type Arg9_Type; + Arg9_Type arg9 = args->getArgumentOrDefault<Arg9_Type>(9, varg9); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); return Qnil; } } catch(...) @@ -1766,51 +1745,50 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); } } catch(...) { @@ -1853,12 +1831,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T, Arg8_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -1871,52 +1848,51 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(7, varg7); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7, &varg8); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - typedef typename sanitize< Arg8_T >::Type Arg8_Type; - Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); + typedef typename sanitize< Arg8_T >::Type Arg8_Type; + Arg8_Type arg8 = args->getArgumentOrDefault<Arg8_Type>(8, varg8); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return Qnil; } } catch(...) @@ -1978,47 +1954,46 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)); } } catch(...) { @@ -2061,12 +2036,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T, Arg7_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2079,48 +2053,47 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(6, varg6); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6, &varg7); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - typedef typename sanitize< Arg7_T >::Type Arg7_Type; - Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); + typedef typename sanitize< Arg7_T >::Type Arg7_Type; + Arg7_Type arg7 = args->getArgumentOrDefault<Arg7_Type>(7, varg7); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); return Qnil; } } catch(...) @@ -2182,43 +2155,42 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6)); } } catch(...) { @@ -2261,12 +2233,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T, Arg6_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2279,44 +2250,43 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(5, varg5); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5, &varg6); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - typedef typename sanitize< Arg6_T >::Type Arg6_Type; - Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); + typedef typename sanitize< Arg6_T >::Type Arg6_Type; + Arg6_Type arg6 = args->getArgumentOrDefault<Arg6_Type>(6, varg6); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5, arg6); return Qnil; } } catch(...) @@ -2378,39 +2348,38 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5)); } } catch(...) { @@ -2453,12 +2422,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T, Arg5_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2471,40 +2439,39 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(4, varg4); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4, &varg5); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - typedef typename sanitize< Arg5_T >::Type Arg5_Type; - Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); + typedef typename sanitize< Arg5_T >::Type Arg5_Type; + Arg5_Type arg5 = args->getArgumentOrDefault<Arg5_Type>(5, varg5); wrapper->func_(arg0, arg1, arg2, arg3, arg4, arg5); return Qnil; } } catch(...) @@ -2566,35 +2533,34 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3, arg4)); } } catch(...) { @@ -2637,12 +2603,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T, Arg4_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2655,36 +2620,35 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3, &varg4); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(3, varg3); wrapper->func_(arg0, arg1, arg2, arg3, arg4); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3, &varg4); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - typedef typename sanitize< Arg4_T >::Type Arg4_Type; - Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); + typedef typename sanitize< Arg4_T >::Type Arg4_Type; + Arg4_Type arg4 = args->getArgumentOrDefault<Arg4_Type>(4, varg4); wrapper->func_(arg0, arg1, arg2, arg3, arg4); return Qnil; } } catch(...) @@ -2746,31 +2710,30 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2, &varg3); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); return to_ruby(wrapper->func_(arg0, arg1, arg2, arg3)); } } catch(...) { @@ -2813,12 +2776,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T, Arg3_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2831,32 +2793,31 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2, &varg3); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(2, varg2); wrapper->func_(arg0, arg1, arg2, arg3); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2, &varg3); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - typedef typename sanitize< Arg3_T >::Type Arg3_Type; - Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); + typedef typename sanitize< Arg3_T >::Type Arg3_Type; + Arg3_Type arg3 = args->getArgumentOrDefault<Arg3_Type>(3, varg3); wrapper->func_(arg0, arg1, arg2, arg3); return Qnil; } } catch(...) @@ -2918,27 +2879,26 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1, &varg2); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); return to_ruby(wrapper->func_(arg0, arg1, arg2)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); return to_ruby(wrapper->func_(arg0, arg1, arg2)); } } catch(...) { @@ -2981,12 +2941,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T, Arg2_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -2999,28 +2958,27 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1, &varg2); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(1, varg1); wrapper->func_(arg0, arg1, arg2); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1, &varg2); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - typedef typename sanitize< Arg2_T >::Type Arg2_Type; - Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); + typedef typename sanitize< Arg2_T >::Type Arg2_Type; + Arg2_Type arg2 = args->getArgumentOrDefault<Arg2_Type>(2, varg2); wrapper->func_(arg0, arg1, arg2); return Qnil; } } catch(...) @@ -3082,23 +3040,22 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0, &varg1); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); return to_ruby(wrapper->func_(arg0, arg1)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); return to_ruby(wrapper->func_(arg0, arg1)); } } catch(...) { @@ -3141,12 +3098,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T, Arg1_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -3159,24 +3115,23 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0, &varg1); Arg0_T arg0 = from_ruby<Arg0_T>(self); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(0, varg0); wrapper->func_(arg0, arg1); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0, &varg1); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - typedef typename sanitize< Arg1_T >::Type Arg1_Type; - Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); + typedef typename sanitize< Arg1_T >::Type Arg1_Type; + Arg1_Type arg1 = args->getArgumentOrDefault<Arg1_Type>(1, varg1); wrapper->func_(arg0, arg1); return Qnil; } } catch(...) @@ -3238,20 +3193,18 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1).c_str() , &varg0); Arg0_T arg0 = from_ruby<Arg0_T>(self); - return to_ruby(wrapper->func_(arg0)); } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); return to_ruby(wrapper->func_(arg0)); } } catch(...) { @@ -3294,12 +3247,11 @@ { Auto_Function_Wrapper<Func_T, void, Arg0_T> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void, Arg0_T> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void, Arg0_T> *)data.get(); Arguments* args = wrapper->arguments_; bool hasSelf = (self && self != Qnil); if(args->count() >= 0) { hasSelf = hasSelf && args->count() == Num_Args - 1; @@ -3312,21 +3264,19 @@ if(hasSelf) { rb_scan_args(argc, argv, args->formatString(Num_Args - 1) .c_str() , &varg0); Arg0_T arg0 = from_ruby<Arg0_T>(self); - wrapper->func_(arg0); return Qnil; } else { rb_scan_args(argc, argv, args->formatString(Num_Args).c_str() , &varg0); typedef typename sanitize< Arg0_T >::Type Arg0_Type; - Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); - + Arg0_Type arg0 = args->getArgumentOrDefault<Arg0_Type>(0, varg0); wrapper->func_(arg0); return Qnil; } } catch(...) @@ -3408,11 +3358,10 @@ { Auto_Function_Wrapper<Func_T, void> * wrapper = 0; try { Data_Object<Wrapped_Function> data(detail::method_data()); - wrapper = - (Auto_Function_Wrapper<Func_T, void> *)data.get(); + wrapper = (Auto_Function_Wrapper<Func_T, void> *)data.get(); wrapper->func_(); return Qnil; } catch(...)