/trunk/Examples/test-suite/rename_simple.i
Swig | 24 lines | 21 code | 3 blank | 0 comment | 0 complexity | 4ec0ca2d10d5590a596a1d94569087f7 MD5 | raw file
1%module rename_simple 2 3%rename(NewStruct) OldStruct; 4%rename(NewVariable) OldVariable; 5%rename(NewInstanceMethod) OldInstanceMethod; 6%rename(NewInstanceVariable) OldInstanceVariable; 7%rename(NewStaticMethod) OldStaticMethod; 8%rename(NewStaticVariable) OldStaticVariable; 9%rename(NewFunction) OldFunction; 10%rename(NewGlobalVariable) OldGlobalVariable; 11 12%inline %{ 13struct OldStruct { 14 OldStruct() : OldInstanceVariable(111) {} 15 int OldInstanceVariable; 16 int OldInstanceMethod() { return 222; } 17 static int OldStaticVariable; 18 static int OldStaticMethod() { return 333; } 19}; 20int OldStruct::OldStaticVariable = 444; 21 22int OldFunction() { return 555; } 23int OldGlobalVariable = 666; 24%}