mirror of
https://github.com/mappu/miqt.git
synced 2025-05-10 05:30:23 +00:00
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__ExceptionHolder
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__ExceptionStore
|
|
#include <qexception.h>
|
|
#include "gen_qexception.h"
|
|
#include "_cgo_export.h"
|
|
|
|
void QtPrivate__ExceptionHolder_new(QtPrivate__ExceptionHolder** outptr_QtPrivate__ExceptionHolder) {
|
|
QtPrivate::ExceptionHolder* ret = new QtPrivate::ExceptionHolder();
|
|
*outptr_QtPrivate__ExceptionHolder = ret;
|
|
}
|
|
|
|
void QtPrivate__ExceptionHolder_Delete(QtPrivate__ExceptionHolder* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QtPrivate::ExceptionHolder*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
bool QtPrivate__ExceptionStore_HasException(const QtPrivate__ExceptionStore* self) {
|
|
return self->hasException();
|
|
}
|
|
|
|
void QtPrivate__ExceptionStore_ThrowPossibleException(QtPrivate__ExceptionStore* self) {
|
|
self->throwPossibleException();
|
|
}
|
|
|
|
bool QtPrivate__ExceptionStore_HasThrown(const QtPrivate__ExceptionStore* self) {
|
|
return self->hasThrown();
|
|
}
|
|
|
|
void QtPrivate__ExceptionStore_Delete(QtPrivate__ExceptionStore* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QtPrivate::ExceptionStore*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|