mirror of
https://github.com/mappu/miqt.git
synced 2025-02-23 13:00:25 +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.
25 lines
480 B
C++
25 lines
480 B
C++
#include <QScopedPointerPodDeleter>
|
|
#include <qscopedpointer.h>
|
|
#include "gen_qscopedpointer.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
void QScopedPointerPodDeleter_Cleanup(void* pointer) {
|
|
QScopedPointerPodDeleter::cleanup(pointer);
|
|
}
|
|
|
|
void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QScopedPointerPodDeleter*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|