mirror of https://github.com/swig/swig
Rename operator() for C in functors unit test
This ensures that these operators are actually wrapped, instead of just being ignored with warnings.
This commit is contained in:
parent
11d7f09f7a
commit
ef77cefd8d
|
@ -1,7 +1,7 @@
|
|||
%module functors
|
||||
|
||||
// Rename operator() only if the language does not already do this by default
|
||||
#if defined(SWIGCSHARP) || defined(SWIGGO) || defined(SWIGGUILE) || defined(SWIGJAVA) || defined(SWIGJAVASCRIPT) || defined(SWIGPHP) || defined(SWIGSCILAB) || defined(SWIGTCL)
|
||||
#if defined(SWIGC) || defined(SWIGCSHARP) || defined(SWIGGO) || defined(SWIGGUILE) || defined(SWIGJAVA) || defined(SWIGJAVASCRIPT) || defined(SWIGPHP) || defined(SWIGSCILAB) || defined(SWIGTCL)
|
||||
%rename(Funktor) operator();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue