Add names of the functions being wrapped to symbol table

At the very least this results in clear error messages when running SWIG if
the symbol is encountered twice instead of errors given only when compiling
the generated code later.
This commit is contained in:
Vadim Zeitlin 2016-04-22 19:10:13 +02:00
commit b24665fa6a

View file

@ -1152,6 +1152,10 @@ ready:
* ---------------------------------------------------------------------- */
virtual int functionWrapper(Node *n) {
if (!Getattr(n, "sym:overloaded")) {
if (!addSymbol(Getattr(n, "sym:name"), n))
return SWIG_ERROR;
}
if (CPlusPlus) {
functionWrapperCPPSpecific(n);