mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
genbindings: add more exceptions
This commit is contained in:
parent
164ef8cb6c
commit
a0812831e7
@ -39,7 +39,7 @@ func (p CppParameter) RenderTypeCabi() string {
|
|||||||
ret = "double"
|
ret = "double"
|
||||||
case "qintptr":
|
case "qintptr":
|
||||||
ret = "intptr_t"
|
ret = "intptr_t"
|
||||||
case "quintptr":
|
case "quintptr", "uintptr":
|
||||||
ret = "uintptr_t"
|
ret = "uintptr_t"
|
||||||
case "qptrdiff":
|
case "qptrdiff":
|
||||||
ret = "ptrdiff_t"
|
ret = "ptrdiff_t"
|
||||||
|
@ -105,6 +105,9 @@ func CheckComplexity(p CppParameter) error {
|
|||||||
if strings.HasPrefix(p.ParameterType, "StringResult<") {
|
if strings.HasPrefix(p.ParameterType, "StringResult<") {
|
||||||
return ErrTooComplex // e.g. qcborstreamreader.h
|
return ErrTooComplex // e.g. qcborstreamreader.h
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(p.ParameterType, "QGenericMatrix<") {
|
||||||
|
return ErrTooComplex // e.g. qmatrix4x4.h
|
||||||
|
}
|
||||||
if strings.HasPrefix(p.ParameterType, "std::initializer") {
|
if strings.HasPrefix(p.ParameterType, "std::initializer") {
|
||||||
return ErrTooComplex // e.g. qcborarray.h
|
return ErrTooComplex // e.g. qcborarray.h
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user