Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/symbol_clash.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

29 lines
385 B
OpenEdge ABL

%module symbol_clash
// ::Vector and ::Text::Vector were incorrectly clashing in the target language symbol tables
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
#if defined(SWIGJAVA)
%include "enumtypeunsafe.swg"
#elif defined(SWIGCSHARP)
%include "enumsimple.swg"
#endif
%inline %{
class Vector
{
};
namespace Text
{
enum Preference
{
Raster,
Vector
};
}
%}
#endif