1 %module(directors="1") director_namespace_clash 2 3 %rename(GreatOne) One::Great; 4 5 %feature("director"); 6 7 %inline %{ 8 namespace One { 9 struct Great { superbGreat10 virtual void superb(int a) {} ~GreatGreat11 virtual ~Great() {} 12 }; 13 } 14 namespace Two { 15 struct Great { excellentGreat16 virtual void excellent() {} ~GreatGreat17 virtual ~Great() {} 18 }; 19 } 20 %} 21 22