mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50: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.
25 lines
470 B
C++
25 lines
470 B
C++
#include <QThreadStorageData>
|
|
#include <qthreadstorage.h>
|
|
#include "gen_qthreadstorage.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QThreadStorageData* QThreadStorageData_new(QThreadStorageData* param1) {
|
|
return new QThreadStorageData(*param1);
|
|
}
|
|
|
|
void QThreadStorageData_Delete(QThreadStorageData* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QThreadStorageData*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|