blob: 350e0fe542ab1aaae62badbd4728c7f75c1f2102 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qv4jscall_p.h"
#include <private/qqmlengine_p.h>
#include <private/qv4qobjectwrapper_p.h>
QT_BEGIN_NAMESPACE
/*! \internal
Sets the arguments of JSCallData from type erased \a args based on type
information provided by \a types
*/
void QV4::populateJSCallArguments(ExecutionEngine *v4, JSCallArguments &jsCall,
int argc, void **args, const QMetaType *types)
{
for (int ii = 0; ii < argc; ++ii)
jsCall.args[ii] = v4->metaTypeToJS(types[ii], args[ii + 1]);
}
QT_END_NAMESPACE
|