Last active
December 14, 2015 11:39
-
-
Save phurni/5081001 to your computer and use it in GitHub Desktop.
Related to SO question: http://stackoverflow.com/questions/15197131/ruby-and-swig-typeerror-cant-convert-nil-into-string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /Users/phi/Temp/QxtGlobalShortcut_wrap.cxx 2013-03-04 10:01:25.000000000 +0100 | |
| +++ /Users/phi/Temp/QxtGlobalShortcut_wrap_debug.cxx 2013-03-05 14:15:39.000000000 +0100 | |
| @@ -1863,6 +1863,7 @@ | |
| void *argp1 = 0 ; | |
| int res1 = 0 ; | |
| QxtGlobalShortcut *result = 0 ; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_0 ENTERING\n"); | |
| if ((argc < 1) || (argc > 1)) { | |
| rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; | |
| @@ -1874,8 +1875,10 @@ | |
| arg1 = reinterpret_cast< QObject * >(argp1); | |
| result = (QxtGlobalShortcut *)new QxtGlobalShortcut(arg1); | |
| DATA_PTR(self) = result; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_0 LEAVING\n"); | |
| return self; | |
| fail: | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_0 FAIL\n"); | |
| return Qnil; | |
| } | |
| @@ -1889,6 +1892,7 @@ | |
| void *argp2 = 0 ; | |
| int res2 = 0 ; | |
| QxtGlobalShortcut *result = 0 ; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_1 ENTERING\n"); | |
| if ((argc < 2) || (argc > 2)) { | |
| rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; | |
| @@ -1908,8 +1912,10 @@ | |
| arg2 = reinterpret_cast< QObject * >(argp2); | |
| result = (QxtGlobalShortcut *)new QxtGlobalShortcut((QKeySequence const &)*arg1,arg2); | |
| DATA_PTR(self) = result; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_1 LEAVING\n"); | |
| return self; | |
| fail: | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_1 FAIL\n"); | |
| return Qnil; | |
| } | |
| @@ -1937,6 +1943,7 @@ | |
| void *argp1 ; | |
| int res1 = 0 ; | |
| QxtGlobalShortcut *result = 0 ; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_2 ENTERING\n"); | |
| if ((argc < 1) || (argc > 1)) { | |
| rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; | |
| @@ -1951,8 +1958,10 @@ | |
| arg1 = reinterpret_cast< QKeySequence * >(argp1); | |
| result = (QxtGlobalShortcut *)new QxtGlobalShortcut((QKeySequence const &)*arg1); | |
| DATA_PTR(self) = result; | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_2 LEAVING\n"); | |
| return self; | |
| fail: | |
| + printf("_wrap_new_QxtGlobalShortcut__SWIG_2 FAIL\n"); | |
| return Qnil; | |
| } | |
| @@ -1963,6 +1972,7 @@ | |
| int ii; | |
| argc = nargs; | |
| + printf("_wrap_new_QxtGlobalShortcut ENTERING with %d arguments\n", argc); | |
| if (argc > 2) SWIG_fail; | |
| for (ii = 0; (ii < argc); ++ii) { | |
| argv[ii] = args[ii]; | |
| @@ -1970,8 +1980,10 @@ | |
| if (argc == 1) { | |
| int _v; | |
| void *vptr = 0; | |
| + printf("_wrap_new_QxtGlobalShortcut before ptr convert for _wrap_new_QxtGlobalShortcut__SWIG_0 TYPE=%d\n", TYPE(argv[0])); | |
| int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_QObject, 0); | |
| _v = SWIG_CheckState(res); | |
| + printf("_wrap_new_QxtGlobalShortcut about to call _wrap_new_QxtGlobalShortcut__SWIG_0 state=%d\n", _v); | |
| if (_v) { | |
| return _wrap_new_QxtGlobalShortcut__SWIG_0(nargs, args, self); | |
| } | |
| @@ -1979,8 +1991,10 @@ | |
| if (argc == 1) { | |
| int _v; | |
| void *vptr = 0; | |
| + printf("_wrap_new_QxtGlobalShortcut before ptr convert for _wrap_new_QxtGlobalShortcut__SWIG_2 TYPE=%d\n", TYPE(argv[0])); | |
| int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_QKeySequence, 0); | |
| _v = SWIG_CheckState(res); | |
| + printf("_wrap_new_QxtGlobalShortcut about to call _wrap_new_QxtGlobalShortcut__SWIG_2 state=%d\n", _v); | |
| if (_v) { | |
| return _wrap_new_QxtGlobalShortcut__SWIG_2(nargs, args, self); | |
| } | |
| @@ -1988,12 +2002,16 @@ | |
| if (argc == 2) { | |
| int _v; | |
| void *vptr = 0; | |
| + printf("_wrap_new_QxtGlobalShortcut before ptr convert for p1 _wrap_new_QxtGlobalShortcut__SWIG_1 TYPE=%d\n", TYPE(argv[0])); | |
| int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_QKeySequence, 0); | |
| _v = SWIG_CheckState(res); | |
| + printf("_wrap_new_QxtGlobalShortcut about to call _wrap_new_QxtGlobalShortcut__SWIG_1 state_p1=%d\n", _v); | |
| if (_v) { | |
| void *vptr = 0; | |
| + printf("_wrap_new_QxtGlobalShortcut before ptr convert for p2 _wrap_new_QxtGlobalShortcut__SWIG_1 TYPE=%d\n", TYPE(argv[1])); | |
| int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_QObject, 0); | |
| _v = SWIG_CheckState(res); | |
| + printf("_wrap_new_QxtGlobalShortcut about to call _wrap_new_QxtGlobalShortcut__SWIG_1 state_p2=%d\n", _v); | |
| if (_v) { | |
| return _wrap_new_QxtGlobalShortcut__SWIG_1(nargs, args, self); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment