MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __Run

Method __Run

src/hx/cppia/CppiaFunction.cpp:830–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828
829
830 Dynamic __Run(const Array<Dynamic> &inArgs) HXCPP_OVERRIDE
831 {
832 CppiaCtx *ctx = CppiaCtx::getCurrent();
833
834 AutoStack a(ctx);
835 ctx->pointer += sizeof(hx::Object *);
836
837 int haveArgs = !inArgs.mPtr ? 0 : inArgs->length;
838 if (haveArgs>function->argCount)
839 throw sInvalidArgCount;
840
841 for(int a=0; a<haveArgs; a++)
842 pushArgDynamic(ctx,a,inArgs[a]);
843
844 return doRun(ctx,haveArgs);
845 }
846
847#if (HXCPP_API_LEVEL<500)
848 Dynamic __run() HXCPP_OVERRIDE

Callers 3

SLJIT_CALL callDynamicFunction · 0.45
runObjectMethod · 0.45
runObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected