summaryrefslogtreecommitdiff
path: root/Examples/test-suite/symbol_clash.i
blob: f0aef1398a9c68a3acdc6564b73cbf5c94debf43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%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