swig/Examples/test-suite/enum_rename.i
Vadim Zeitlin 587d843521 Remove old experimental rxspencer encoder and rxsmatch function.
They are replaced with the new, officially supported PCRE-based regex and
regexmatch.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:02:35 +00:00

12 lines
309 B
OpenEdge ABL

%module enum_rename
%warnfilter(SWIGWARN_PARSE_REDEFINED) S_May;
// %rename using regex can do the equivalent of these two renames, which was resulting in uncompileable 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 };
%}