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 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
%module functors
|
%module functors
|
||||||
|
|
||||||
// Rename operator() only if the language does not already do this by default
|
// 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();
|
%rename(Funktor) operator();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue