Define FUNC_NAME also in the dispatch wrapper for overloaded
functions. Patch by John Lenz, SF #896255. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bd55a6f4fb
commit
61668907c8
1 changed files with 2 additions and 0 deletions
|
|
@ -1091,11 +1091,13 @@ public:
|
|||
"static SCM\n", dname,
|
||||
"(SCM rest)\n{\n",
|
||||
NIL);
|
||||
Printf(df->code, "#define FUNC_NAME \"%s\"\n", proc_name);
|
||||
Printf(df->code, "SCM argv[%d];\n", maxargs);
|
||||
Printf(df->code, "int argc = SWIG_Guile_GetArgs (argv, rest, %d, %d, \"%s\");\n",
|
||||
0, maxargs, proc_name);
|
||||
Printv(df->code,dispatch,"\n",NIL);
|
||||
Printf(df->code,"scm_misc_error(\"%s\", \"No matching method for generic function `%s'\", SCM_EOL);\n", proc_name, iname);
|
||||
Printf(df->code, "#undef FUNC_NAME\n");
|
||||
Printv(df->code,"}\n",NIL);
|
||||
Wrapper_print(df,f_wrappers);
|
||||
if (use_scm_interface) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue