miqt/qt-restricted-extras/qscintilla/gen_qscidocument.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

32 lines
568 B
C++

#include <qscidocument.h>
#include "gen_qscidocument.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QsciDocument* QsciDocument_new() {
return new QsciDocument();
}
QsciDocument* QsciDocument_new2(QsciDocument* param1) {
return new QsciDocument(*param1);
}
void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1) {
self->operator=(*param1);
}
void QsciDocument_Delete(QsciDocument* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QsciDocument*>( self );
} else {
delete self;
}
}