mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
a0c6344ecd
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.
26 lines
519 B
C++
26 lines
519 B
C++
#include <qvarlengtharray.h>
|
|
#include "gen_qvarlengtharray.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
ptrdiff_t QVLABaseBase_Capacity(const QVLABaseBase* self) {
|
|
QVLABaseBase::size_type _ret = self->capacity();
|
|
return static_cast<ptrdiff_t>(_ret);
|
|
}
|
|
|
|
ptrdiff_t QVLABaseBase_Size(const QVLABaseBase* self) {
|
|
QVLABaseBase::size_type _ret = self->size();
|
|
return static_cast<ptrdiff_t>(_ret);
|
|
}
|
|
|
|
bool QVLABaseBase_Empty(const QVLABaseBase* self) {
|
|
return self->empty();
|
|
}
|
|
|