2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QChar>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QDebugStateSaver>
|
|
|
|
#include <QIODevice>
|
|
|
|
#include <QNoDebug>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qdebug.h"
|
|
|
|
#include "gen_qdebug.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QDebug* QDebug_new(QIODevice* device) {
|
|
|
|
return new QDebug(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_new2(QDebug* o) {
|
|
|
|
return new QDebug(*o);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDebug_OperatorAssign(QDebug* self, QDebug* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDebug_Swap(QDebug* self, QDebug* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_ResetFormat(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->resetFormat();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_Space(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->space();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_Nospace(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->nospace();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_MaybeSpace(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->maybeSpace();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_Verbosity(QDebug* self, int verbosityLevel) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->verbosity(static_cast<int>(verbosityLevel));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDebug_Verbosity2(const QDebug* self) {
|
|
|
|
return self->verbosity();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDebug_SetVerbosity(QDebug* self, int verbosityLevel) {
|
|
|
|
self->setVerbosity(static_cast<int>(verbosityLevel));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDebug_AutoInsertSpaces(const QDebug* self) {
|
|
|
|
return self->autoInsertSpaces();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDebug_SetAutoInsertSpaces(QDebug* self, bool b) {
|
|
|
|
self->setAutoInsertSpaces(b);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_Quote(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->quote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_Noquote(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->noquote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_MaybeQuote(QDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->maybeQuote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeft(QDebug* self, QChar* t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(*t);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithBool(QDebug* self, bool t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(t);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithChar(QDebug* self, char t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<char>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithShort(QDebug* self, int16_t t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<short>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithUnsignedshort(QDebug* self, uint16_t t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<unsigned short>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithInt(QDebug* self, int t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<int>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithUnsignedint(QDebug* self, unsigned int t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<unsigned int>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithLong(QDebug* self, long t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<long>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithUnsignedlong(QDebug* self, unsigned long t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<unsigned long>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QDebug* QDebug_OperatorShiftLeftWithQint64(QDebug* self, long long t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<qint64>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QDebug* QDebug_OperatorShiftLeftWithQuint64(QDebug* self, unsigned long long t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<quint64>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithFloat(QDebug* self, float t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<float>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithDouble(QDebug* self, double t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(static_cast<double>(t));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QDebug* QDebug_OperatorShiftLeft2(QDebug* self, const char* t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(t);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug* QDebug_OperatorShiftLeftWithQString(QDebug* self, struct miqt_string* t) {
|
|
|
|
QString t_QString = QString::fromUtf8(&t->data, t->len);
|
|
|
|
QDebug& _ret = self->operator<<(t_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_OperatorShiftLeftWithQByteArray(QDebug* self, QByteArray* t) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->operator<<(*t);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDebug* QDebug_MaybeQuote1(QDebug* self, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDebug& _ret = self->maybeQuote(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDebug_Delete(QDebug* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDebugStateSaver* QDebugStateSaver_new(QDebug* dbg) {
|
|
|
|
return new QDebugStateSaver(*dbg);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDebugStateSaver_Delete(QDebugStateSaver* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_Space(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->space();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_Nospace(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->nospace();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_MaybeSpace(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->maybeSpace();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_Quote(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->quote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_Noquote(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->noquote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_MaybeQuote(QNoDebug* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->maybeQuote();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QNoDebug* QNoDebug_Verbosity(QNoDebug* self, int param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->verbosity(static_cast<int>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QNoDebug* QNoDebug_MaybeQuote1(QNoDebug* self, const char param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QNoDebug& _ret = self->maybeQuote(static_cast<const char>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QNoDebug_Delete(QNoDebug* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|