Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qv4alloca_p.h File Reference

(8f1feef274c25deccbbcc971f3bda3cdd9f84db4)

#include <QtCore/private/qglobal_p.h>
#include <stdlib.h>
#include <memory>
Include dependency graph for qv4alloca_p.h:

Go to the source code of this file.

Macros

#define Q_ALLOCA_VAR(type, name, size)
#define Q_ALLOCA_DECLARE(type, name)
#define Q_ALLOCA_ASSIGN(type, name, size)

Macro Definition Documentation

◆ Q_ALLOCA_ASSIGN

#define Q_ALLOCA_ASSIGN ( type,
name,
size )
Value:
do { \
_qt_alloca_##name.reset(new char[size]); \
name = reinterpret_cast<type*>(_qt_alloca_##name.get()); \
} while (false)
GLenum GLuint GLintptr GLsizeiptr size
GLenum type
EGLImageKHR EGLint * name

Definition at line 56 of file qv4alloca_p.h.

◆ Q_ALLOCA_DECLARE

#define Q_ALLOCA_DECLARE ( type,
name )
Value:
std::unique_ptr<char[]> _qt_alloca_##name; \
type *name = nullptr

Definition at line 52 of file qv4alloca_p.h.

◆ Q_ALLOCA_VAR

#define Q_ALLOCA_VAR ( type,
name,
size )
Value:
Q_ALLOCA_ASSIGN(type, name, size)
#define Q_ALLOCA_DECLARE(type, name)
Definition qv4alloca_p.h:52

Definition at line 37 of file qv4alloca_p.h.