Extra constructor to handle enum items initialised by another enum item
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c332d8e833
commit
675ceb3327
3 changed files with 17 additions and 0 deletions
|
|
@ -98,6 +98,11 @@
|
|||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
private $javaclassname($javaclassname swigEnum) {
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
SwigNext.next = this.swigValue+1;
|
||||
}
|
||||
|
||||
private final int swigValue;
|
||||
|
||||
private static class SwigNext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue