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:
Vadim Zeitlin 2019-08-04 17:45:59 +02:00
parent 11d7f09f7a
commit ef77cefd8d
1 changed files with 1 additions and 1 deletions

View File

@ -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