mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings/enums: remove some excess logging
This commit is contained in:
parent
d07996d2ed
commit
2f99f450a5
@ -580,11 +580,9 @@ nextEnumEntry:
|
|||||||
// Best case: .inner -> kind=ImplicitCastExpr .inner -> kind=ConstantExpr value=xx
|
// Best case: .inner -> kind=ImplicitCastExpr .inner -> kind=ConstantExpr value=xx
|
||||||
// e.g. QCalendar (when there is a int typecast)
|
// e.g. QCalendar (when there is a int typecast)
|
||||||
if ei1Kind == "ImplicitCastExpr" {
|
if ei1Kind == "ImplicitCastExpr" {
|
||||||
log.Printf("Got ImplicitCastExpr OK")
|
|
||||||
if ei2, ok := ei1_0["inner"].([]interface{}); ok && len(ei2) > 0 {
|
if ei2, ok := ei1_0["inner"].([]interface{}); ok && len(ei2) > 0 {
|
||||||
ei2_0 := ei2[0].(map[string]interface{})
|
ei2_0 := ei2[0].(map[string]interface{})
|
||||||
if ei2Kind, ok := ei2_0["kind"].(string); ok && ei2Kind == "ConstantExpr" {
|
if ei2Kind, ok := ei2_0["kind"].(string); ok && ei2Kind == "ConstantExpr" {
|
||||||
log.Printf("Got ConstantExpr OK")
|
|
||||||
if ei2Value, ok := ei2_0["value"].(string); ok {
|
if ei2Value, ok := ei2_0["value"].(string); ok {
|
||||||
cee.EntryValue = ei2Value
|
cee.EntryValue = ei2Value
|
||||||
goto afterParse
|
goto afterParse
|
||||||
|
Loading…
Reference in New Issue
Block a user