summaryrefslogtreecommitdiff
path: root/Lib/swigarch.i
diff options
context:
space:
mode:
authorJason Turner <jason@emptycrate.com>2014-05-31 14:35:10 -0600
committerOliver Buchtala <oliver.buchtala@gmail.com>2014-06-06 18:24:22 +0200
commitfa36b6228e760e19928a9cccff71114ea46f932b (patch)
tree5822066ba01d54e1d049dd6174bf5d2ddc460232 /Lib/swigarch.i
parentef4cb2f57465025203961a484fd8f7a0a8c9faa7 (diff)
downloadswig-fa36b6228e760e19928a9cccff71114ea46f932b.tar.gz
Fix function naming conflict with class overloads.
This fix takes into account the classname while generating overload handlers. Example: If you have two classes: class A { public: void doSomething(int); void doSomething(double); }; class B { public: void doSomething(int); void doSomething(double); }; Before this patch, the overload handlers for A::doSomething and B::doSomething create conflicting names and function redefinition errors are caused. After the patch, the overload handlers are named classname_doSomething and no longer conflict. This is might not the best way to implement this, but it solves a critical problem on large projects, and specifically can affect operator overloads that are being wrapped.
Diffstat (limited to 'Lib/swigarch.i')
0 files changed, 0 insertions, 0 deletions