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
qv4booleanobject_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4#ifndef QV4BOOLEANOBJECT_H
5#define QV4BOOLEANOBJECT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qv4object_p.h"
20#include <QtCore/qnumeric.h>
21
23
24namespace QV4 {
25
26namespace Heap {
27
29 void init(ExecutionEngine *engine);
30};
31
32}
33
35{
36 V4_OBJECT2(BooleanCtor, FunctionObject)
37
38 static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *);
39 static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc);
40};
41
43{
44 V4_PROTOTYPE(objectPrototype)
46
47 static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
48 static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
49};
50
51
52}
53
54QT_END_NAMESPACE
55
56#endif // QV4ECMAOBJECTS_P_H
Definition qjsvalue.h:23
static bool value(const Value *thisObject, bool *exception)
DEFINE_OBJECT_VTABLE(BooleanObject)
DEFINE_OBJECT_VTABLE(BooleanCtor)
static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void init(ExecutionEngine *engine)