#include "WfRuntime.h"
#ifdef VCZH_DESCRIPTABLEOBJECT_WITH_METADATA
namespace
{
namespace
{
namespace
{
using
namespace
reflection
::
description
;
::
(
<
>
,
<
>
,
)
:globalContext(
)
, capturedVariables(
)
, functionIndex(
)
{
}
::
(
<
reflection
::
description
::
>
)
{
return
(
,
,
,
);
}
::
(
<
>
,
<
>
,
,
<
reflection
::
description
::
>
)
{
(
);
=
();
for
(
=
0
;
i
<
count
;
i
++)
{
context
.
(
(
i
));
}
;
if
(
context
.
(
,
count
,
) !=
WfRuntimeThreadContextError
::
)
{
throw
(
L"Internal error: failed to invoke a function."
,
true
);
}
context
.
();
if
(
context
.
!=
::
)
{
throw
(
context
.
);
}
;
if
(
context
.
(
result
) !=
WfRuntimeThreadContextError
::
)
{
throw
(
L"Internal error: failed to pop the function result."
,
true
);
}
return
result
;
}
WfRuntimeInterfaceInstance
::
(
*
,
<
>
)
{
=
.
().
(
);
if
(
index
== -
1
)
{
throw
(
L"Internal error: failed to invoke the interface method \""
+
->
() +
L"\" of type \""
+
->
()->
() +
L"\""
,
true
);
}
else
{
=
.
()
index
];
return
::
(
,
,
functionIndex
,
);
}
}
}
}
}
#endif