miqt/qt/gen_qlinkedlist.cpp
Jacek Sieka a0c6344ecd Avoid dependency on exported go header
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.
2025-01-07 12:55:40 +01:00

25 lines
410 B
C++

#include <QLinkedListData>
#include <qlinkedlist.h>
#include "gen_qlinkedlist.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QLinkedListData* QLinkedListData_new() {
return new QLinkedListData();
}
void QLinkedListData_Delete(QLinkedListData* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QLinkedListData*>( self );
} else {
delete self;
}
}