Corrections for Ruby 1.6 compatibility.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0985badfe3
commit
4889aadd3d
2 changed files with 5 additions and 2 deletions
|
|
@ -2016,7 +2016,7 @@ public:
|
|||
Printv(w->code, "args.argv = 0;\n", NIL);
|
||||
}
|
||||
Printf(w->code,
|
||||
"result = rb_protect((VALUE(*)(VALUE)) %s, reinterpret_cast<VALUE>(&args), &status);\n", bodyName, rescueName);
|
||||
"result = rb_protect(PROTECTFUNC(%s), reinterpret_cast<VALUE>(&args), &status);\n", bodyName, rescueName);
|
||||
Printf(w->code,
|
||||
"if (status) {\n");
|
||||
Printf(w->code,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue