summaryrefslogtreecommitdiff
path: root/Examples/test-suite/enum_rename.i
blob: 23e100db910a31b17d71dea8b6efed8527633840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
%module enum_rename

%warnfilter(SWIGWARN_PARSE_REDEFINED) S_May;

// %rename using regex can do the equivalent of these two renames, which was resulting in uncompilable code
%rename(May) M_May;
%rename(May) S_May;

%inline %{
	enum Month { M_Jan, M_May, M_Dec };
	enum Severity { S_May, S_Can, S_Must };
%}