Skip to content

Commit 3fbea59

Browse files
committed
odb: handle new type in SWIG interface
Signed-off-by: Arthur Koucher <[email protected]>
1 parent ed87789 commit 3fbea59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/odb/src/swig/tcl/dbenums.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,9 @@
16261626
case odb::dbGroupType::POWER_DOMAIN:
16271627
obj = Tcl_NewStringObj("POWER_DOMAIN", -1);
16281628
break;
1629+
case odb::dbGroupType::VISUAL_DEBUG:
1630+
obj = Tcl_NewStringObj("VISUAL_DEBUG", -1);
1631+
break;
16291632
}
16301633
Tcl_SetObjResult(interp, obj);
16311634
}
@@ -1637,6 +1640,8 @@
16371640
$1 = odb::dbGroupType::VOLTAGE_DOMAIN;
16381641
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
16391642
$1 = odb::dbGroupType::POWER_DOMAIN;
1643+
} else if (strcasecmp(str, "VISUAL_DEBUG") == 0) {
1644+
$1 = odb::dbGroupType::VISUAL_DEBUG;
16401645
}
16411646
}
16421647
%typemap(typecheck) odb::dbGroupType, dbGroupType {
@@ -1649,6 +1654,8 @@
16491654
found = true;
16501655
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
16511656
found = true;
1657+
} else if (strcasecmp(str, "VISUAL_DEBUG") == 0) {
1658+
found = true;
16521659
}
16531660
}
16541661
if (found) {

0 commit comments

Comments
 (0)