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
|
|
@ -103,6 +103,12 @@
|
|||
swigNext = swigValue+1;
|
||||
}
|
||||
|
||||
private $csclassname(string swigName, $csclassname swigEnum) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
swigNext = this.swigValue+1;
|
||||
}
|
||||
|
||||
private static $csclassname[] swigValues = { $enumvalues };
|
||||
private static int swigNext = 0;
|
||||
private readonly string swigName;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -102,6 +102,12 @@
|
|||
swigNext = swigValue+1;
|
||||
}
|
||||
|
||||
private $javaclassname(String swigName, $javaclassname swigEnum) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
swigNext = this.swigValue+1;
|
||||
}
|
||||
|
||||
private static $javaclassname[] swigValues = { $enumvalues };
|
||||
private static int swigNext = 0;
|
||||
private final int swigValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue