mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 22:20:38 +00:00
a0c6344ecd
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.
41 lines
740 B
C++
41 lines
740 B
C++
#include <QSharedData>
|
|
#include <qshareddata.h>
|
|
#include "gen_qshareddata.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QSharedData* QSharedData_new() {
|
|
return new QSharedData();
|
|
}
|
|
|
|
QSharedData* QSharedData_new2(QSharedData* param1) {
|
|
return new QSharedData(*param1);
|
|
}
|
|
|
|
void QSharedData_Delete(QSharedData* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QSharedData*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
QAdoptSharedDataTag* QAdoptSharedDataTag_new() {
|
|
return new QAdoptSharedDataTag();
|
|
}
|
|
|
|
void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QAdoptSharedDataTag*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|