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
qanimationjobutil_p.h File Reference

(c11d9459d87a4b981123709415e3563bdda66423)

#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtconfigmacros.h>
#include <type_traits>
Include dependency graph for qanimationjobutil_p.h:

Go to the source code of this file.

Classes

struct  SelfDeletable

Macros

#define ACTION_IF_DISABLE_DANGLING_POINTER_WARNING
#define ACTION_IF_DELETED(p, func, action)
#define RETURN_IF_DELETED(func)

Functions

 QT_REQUIRE_CONFIG (qml_animation)

Macro Definition Documentation

◆ ACTION_IF_DELETED

#define ACTION_IF_DELETED ( p,
func,
action )
Value:
do { \
QT_WARNING_PUSH \
ACTION_IF_DISABLE_DANGLING_POINTER_WARNING \
static_assert(std::is_same<decltype((p)->m_selfDeletable), SelfDeletable>::value, "m_selfDeletable must be SelfDeletable");\
bool *prevWasDeleted = (p)->m_selfDeletable.m_wasDeleted; \
bool wasDeleted = false; \
(p)->m_selfDeletable.m_wasDeleted = &wasDeleted; \
{func;} \
if (wasDeleted) { \
if (prevWasDeleted) \
*prevWasDeleted = true; \
{action;} \
} \
(p)->m_selfDeletable.m_wasDeleted = prevWasDeleted; \
} while (false)
#define QT_WARNING_POP
EGLOutputLayerEXT EGLint EGLAttrib value
[3]
GLfloat GLfloat p
GLenum func
Definition qopenglext.h:663

Definition at line 47 of file qanimationjobutil_p.h.

◆ ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

#define ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

Definition at line 30 of file qanimationjobutil_p.h.

◆ RETURN_IF_DELETED

#define RETURN_IF_DELETED ( func)
Value:
ACTION_IF_DELETED(this, func, return)
#define ACTION_IF_DELETED(p, func, action)

Definition at line 65 of file qanimationjobutil_p.h.

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( qml_animation )