Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmalloc.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QMALLOC_H
5#define QMALLOC_H
6
7#include <QtCore/qcompilerdetection.h>
8#include <QtCore/qtconfigmacros.h>
9#include <QtCore/qtcoreexports.h>
10
11#include <cstddef> // size_t
12
13#if 0
14#pragma qt_class(QtMalloc)
15#pragma qt_sync_stop_processing
16#endif
17
19
20Q_CORE_EXPORT void *qMallocAligned(size_t size, size_t alignment) Q_ALLOC_SIZE(1);
21Q_CORE_EXPORT void *qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment) Q_ALLOC_SIZE(2);
22Q_CORE_EXPORT void qFreeAligned(void *ptr);
23
25
26#endif // QMALLOC_H
uint alignment
Combined button and popup list for selecting options.
#define Q_ALLOC_SIZE(x)
Q_CORE_EXPORT void * qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment) Q_ALLOC_SIZE(2)
Definition qmalloc.cpp:22
Q_CORE_EXPORT void qFreeAligned(void *ptr)
Definition qmalloc.cpp:71
QT_BEGIN_NAMESPACE Q_CORE_EXPORT void * qMallocAligned(size_t size, size_t alignment) Q_ALLOC_SIZE(1)
Definition qmalloc.cpp:17
static ControlElement< T > * ptr(QWidget *widget)
GLenum GLuint GLintptr GLsizeiptr size
[1]