Add C# example showing how to modify the underlying enum type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f67c0fa12c
commit
1a317ff3db
2 changed files with 40 additions and 0 deletions
|
|
@ -110,3 +110,10 @@ struct WasCrashing {};
|
|||
void hoop(WasCrashing was) {}
|
||||
%}
|
||||
|
||||
|
||||
// Enum underlying type
|
||||
%typemap(csbase) BigNumbers "uint"
|
||||
%inline %{
|
||||
enum BigNumbers { big=0x80000000, bigger };
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue