| 1 | /* |
| 2 | * Copyright (C) 1999-2000 Harri Porten ([email protected]) |
| 3 | * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef BooleanObject_h |
| 22 | #define BooleanObject_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/BooleanObject.h:22:9`! |
| 23 | |
| 24 | #include "JSWrapperObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSWrapperObject.h`/ |
| 25 | |
| 26 | namespace JSCcxx . . $ QTJSC/ { |
| 27 | |
| 28 | class BooleanObjectcxx . . $ QTJSC/BooleanObject# : public JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject# { |
| 29 | public: |
| 30 | explicit BooleanObjectcxx . . $ QTJSC/BooleanObject#BooleanObject(9678d77265d996b).(NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#>); |
| 31 | |
| 32 | virtual const ClassInfocxx . . $ QTJSC/ClassInfo#* classInfocxx . . $ QTJSC/BooleanObject#classInfo(f90fb4cda7a7c2e2).() const { return &infocxx . . $ QTJSC/BooleanObject#info.; } |
| 33 | static const ClassInfocxx . . $ QTJSC/ClassInfo# infocxx . . $ QTJSC/BooleanObject#info.; |
| 34 | |
| 35 | static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> createStructurecxx . . $ QTJSC/BooleanObject#createStructure(da75fbe5e97e240f).(JSValuecxx . . $ QTJSC/JSValue# prototype) |
| 36 | { |
| 37 | return Structure::create(prototype, TypeInfocxx . . $ QTJSC/TypeInfo#TypeInfo(85e540a0e5560fef).(ObjectTypecxx . . $ QTJSC/ObjectType., StructureFlagscxx . . $ QTJSC/JSObject#StructureFlags.)); |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | BooleanObjectcxx . . $ QTJSC/BooleanObject#* asBooleanObjectcxx . . $ QTJSC/asBooleanObject(4fa04348c375458a).(JSValuecxx . . $ QTJSC/JSValue#); |
| 42 | |
| 43 | inline BooleanObjectcxx . . $ QTJSC/BooleanObject#* asBooleanObjectcxx . . $ QTJSC/asBooleanObject(4fa04348c375458a).(JSValuecxx . . $ QTJSC/JSValue# value) |
| 44 | { |
| 45 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(asObject(value)->inherits(&BooleanObject::info)); |
| 46 | return static_cast<BooleanObject*>(asObject(value)); |
| 47 | } |
| 48 | |
| 49 | } // namespace JSC |
| 50 | |
| 51 | #endif // BooleanObject_h |