miqt/qt6/gen_qexception.cpp

26 lines
707 B
C++
Raw Normal View History

2024-10-20 18:21:03 +13:00
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__ExceptionStore
#include <qexception.h>
#include "gen_qexception.h"
#include "_cgo_export.h"
bool QtPrivate__ExceptionStore_HasException(const QtPrivate__ExceptionStore* self) {
return self->hasException();
}
void QtPrivate__ExceptionStore_ThrowPossibleException(QtPrivate__ExceptionStore* self) {
self->throwPossibleException();
}
void QtPrivate__ExceptionStore_RethrowException(const QtPrivate__ExceptionStore* self) {
self->rethrowException();
}
2024-11-19 19:29:06 +13:00
void QtPrivate__ExceptionStore_Delete(QtPrivate__ExceptionStore* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QtPrivate::ExceptionStore*>( self );
} else {
delete self;
}
2024-10-20 18:21:03 +13:00
}