Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qv4scopedvalue_p.h File Reference
#include "qv4engine_p.h"
#include "qv4value_p.h"
#include "qv4property_p.h"
#include "qv4propertykey_p.h"
+ Include dependency graph for qv4scopedvalue_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QV4::Scope
 
struct  QV4::ScopedValue
 
struct  QV4::ScopedPropertyKey
 
struct  QV4::Scoped< T >
 
struct  QV4::ScopedProperty
 

Namespaces

namespace  QV4
 \qmltype Particle \inqmlmodule QtQuick.Particles
 

Macros

#define SAVE_JS_STACK(ctx)   Value *__jsStack = ctx->engine->jsStackTop
 
#define CHECK_JS_STACK(ctx)   Q_ASSERT(__jsStack == ctx->engine->jsStackTop)
 
#define CHECK_EXCEPTION()
 
#define RETURN_UNDEFINED()    return QV4::Encode::undefined()
 
#define RETURN_RESULT(r)    return QV4::Encode(r)
 
#define THROW_TYPE_ERROR()    return scope.engine->throwTypeError()
 
#define THROW_GENERIC_ERROR(str)    return scope.engine->throwError(QString::fromUtf8(str))
 

Functions

bool QV4::hasExceptionOrIsInterrupted (ExecutionEngine *engine)
 

Macro Definition Documentation

◆ CHECK_EXCEPTION

#define CHECK_EXCEPTION ( )
Value:
do { \
if (hasExceptionOrIsInterrupted(scope.engine)) { \
} \
} while (false)
static constexpr ReturnedValue undefined()

Definition at line 40 of file qv4scopedvalue_p.h.

◆ CHECK_JS_STACK

#define CHECK_JS_STACK (   ctx)    Q_ASSERT(__jsStack == ctx->engine->jsStackTop)

Definition at line 29 of file qv4scopedvalue_p.h.

◆ RETURN_RESULT

#define RETURN_RESULT (   r)     return QV4::Encode(r)

Definition at line 50 of file qv4scopedvalue_p.h.

◆ RETURN_UNDEFINED

#define RETURN_UNDEFINED ( )     return QV4::Encode::undefined()

Definition at line 47 of file qv4scopedvalue_p.h.

◆ SAVE_JS_STACK

#define SAVE_JS_STACK (   ctx)    Value *__jsStack = ctx->engine->jsStackTop

Definition at line 28 of file qv4scopedvalue_p.h.

◆ THROW_GENERIC_ERROR

#define THROW_GENERIC_ERROR (   str)     return scope.engine->throwError(QString::fromUtf8(str))

Definition at line 56 of file qv4scopedvalue_p.h.

◆ THROW_TYPE_ERROR

#define THROW_TYPE_ERROR ( )     return scope.engine->throwTypeError()

Definition at line 53 of file qv4scopedvalue_p.h.