miqt/qt/gen_qcontiguouscache.cpp

26 lines
637 B
C++
Raw Normal View History

#include <QContiguousCacheData>
#include <qcontiguouscache.h>
2024-08-29 07:01:51 +00:00
#include "gen_qcontiguouscache.h"
#ifndef _Bool
#define _Bool bool
#endif
#include "_cgo_export.h"
QContiguousCacheData* QContiguousCacheData_AllocateData(int size, int alignment) {
return QContiguousCacheData::allocateData(static_cast<int>(size), static_cast<int>(alignment));
}
void QContiguousCacheData_FreeData(QContiguousCacheData* data) {
QContiguousCacheData::freeData(data);
}
2024-11-19 06:29:06 +00:00
void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QContiguousCacheData*>( self );
} else {
delete self;
}
}