Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qanimationjobutil_p.h File Reference
#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)   ACTION_IF_DELETED(this, func, return)
 

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
[5]
GLenum func
Definition qopenglext.h:663
GLfloat GLfloat p
[1]

Definition at line 45 of file qanimationjobutil_p.h.

◆ ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

#define ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

Definition at line 28 of file qanimationjobutil_p.h.

◆ RETURN_IF_DELETED

#define RETURN_IF_DELETED (   func)    ACTION_IF_DELETED(this, func, return)

Definition at line 63 of file qanimationjobutil_p.h.

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( qml_animation  )