mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58: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"
|
||||
case "qintptr":
|
||||
ret = "intptr_t"
|
||||
case "quintptr":
|
||||
case "quintptr", "uintptr":
|
||||
ret = "uintptr_t"
|
||||
case "qptrdiff":
|
||||
ret = "ptrdiff_t"
|
||||
|
@ -105,6 +105,9 @@ func CheckComplexity(p CppParameter) error {
|
||||
if strings.HasPrefix(p.ParameterType, "StringResult<") {
|
||||
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") {
|
||||
return ErrTooComplex // e.g. qcborarray.h
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user