mirror of
https://github.com/mappu/miqt.git
synced 2025-02-23 04:50:24 +00:00

The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include `_cgo_export.h` any more.
30 lines
601 B
C++
30 lines
601 B
C++
#include <QPropertyProxyBindingData>
|
|
#include <QUntypedPropertyData>
|
|
#include <qpropertyprivate.h>
|
|
#include "gen_qpropertyprivate.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
void QUntypedPropertyData_Delete(QUntypedPropertyData* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QUntypedPropertyData*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QPropertyProxyBindingData_Delete(QPropertyProxyBindingData* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QPropertyProxyBindingData*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|