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:
Lyle Johnson 2004-09-01 02:37:54 +00:00
commit 4889aadd3d
2 changed files with 5 additions and 2 deletions

View file

@ -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,