[Guile] Changed SCHEME_NAME to FUNC_NAME.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2b75eaeb09
commit
66b7d171d7
2 changed files with 5 additions and 8 deletions
|
|
@ -167,7 +167,7 @@ static void _SWIG_exception(int code, char *msg) {
|
||||||
#undef MAP
|
#undef MAP
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SWIG_exception(a,b) _SWIG_exception(a, b, SCHEME_NAME)
|
#define SWIG_exception(a,b) _SWIG_exception(a, b, FUNC_NAME)
|
||||||
%}
|
%}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -588,12 +588,9 @@ GUILE::create_function (char *name, char *iname, SwigType *d, ParmList *l)
|
||||||
Printv(signature, ")\n", 0);
|
Printv(signature, ")\n", 0);
|
||||||
Printf(f->def, ")\n{\n");
|
Printf(f->def, ")\n{\n");
|
||||||
|
|
||||||
/* Define the scheme name in C */
|
/* Define the scheme name in C. This define is used by several Guile
|
||||||
/* FIXME: This is only needed for the code in exception.i since
|
macros. */
|
||||||
typemaps can always use $name. I propose to define a new macro
|
Printv(f->def, "#define FUNC_NAME \"", proc_name, "\"\n", 0);
|
||||||
SWIG_exception_in(ERROR, MESSAGE, FUNCTION) and use it instead of
|
|
||||||
SWIG_exception(ERROR, MESSAGE). */
|
|
||||||
Printv(f->def, "#define SCHEME_NAME \"", proc_name, "\"\n", 0);
|
|
||||||
|
|
||||||
// Now write code to make the function call
|
// Now write code to make the function call
|
||||||
Printv(f->code, tab4, "gh_defer_ints();\n", 0);
|
Printv(f->code, tab4, "gh_defer_ints();\n", 0);
|
||||||
|
|
@ -644,7 +641,7 @@ GUILE::create_function (char *name, char *iname, SwigType *d, ParmList *l)
|
||||||
|
|
||||||
// Undefine the scheme name
|
// Undefine the scheme name
|
||||||
|
|
||||||
Printf(f->code, "#undef SCHEME_NAME\n");
|
Printf(f->code, "#undef FUNC_NAME\n");
|
||||||
Printf(f->code, "}\n");
|
Printf(f->code, "}\n");
|
||||||
|
|
||||||
Wrapper_print (f, f_wrappers);
|
Wrapper_print (f, f_wrappers);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue