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

(22df353c14800d2e9b6d57a9a0cb9c6baa337999)

#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

Macros

#define SAVE_JS_STACK(ctx)
#define CHECK_JS_STACK(ctx)
#define CHECK_EXCEPTION()
#define RETURN_UNDEFINED()
#define RETURN_RESULT(r)
#define THROW_TYPE_ERROR()
#define THROW_GENERIC_ERROR(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 41 of file qv4scopedvalue_p.h.

◆ CHECK_JS_STACK

#define CHECK_JS_STACK ( ctx)
Value:
Q_ASSERT(__jsStack == ctx->engine->jsStackTop)
#define Q_ASSERT(cond)
Definition qrandom.cpp:48
EGLContext ctx

Definition at line 30 of file qv4scopedvalue_p.h.

◆ RETURN_RESULT

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

Definition at line 51 of file qv4scopedvalue_p.h.

◆ RETURN_UNDEFINED

#define RETURN_UNDEFINED ( )
Value:

Definition at line 48 of file qv4scopedvalue_p.h.

◆ SAVE_JS_STACK

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

Definition at line 29 of file qv4scopedvalue_p.h.

◆ THROW_GENERIC_ERROR

#define THROW_GENERIC_ERROR ( str)
Value:
return scope.engine->throwError(QString::fromUtf8(str))
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qstring.cpp:6061
QString str("QStringBuilder")
[5]

Definition at line 57 of file qv4scopedvalue_p.h.

◆ THROW_TYPE_ERROR

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

Definition at line 54 of file qv4scopedvalue_p.h.