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

Method runInt

src/hx/cppia/ArrayBuiltin.cpp:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 return (ExprType)ExprTypeOf<ELEM>::value;
113 }
114 int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE
115 {
116 Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx));
117 BCR_CHECK;
118 int i = args[0]->runInt(ctx);
119 BCR_CHECK;
120 ELEM &elem = thisVal->Item(i);
121 FUNC::run(elem, ctx, args[1]);
122 #ifdef HXCPP_GC_GENERATIONAL
123 if (hx::ContainsPointers<ELEM>())
124 HX_OBJ_WB_CTX(thisVal,hx::PointerOf(elem),ctx);
125 #endif
126 return ValToInt(elem);
127 }
128 Float runFloat(CppiaCtx *ctx) HXCPP_OVERRIDE
129 {
130 Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx));

Callers 8

runFloatMethod · 0.45
runStringMethod · 0.45
runObjectMethod · 0.45
runIntMethod · 0.45
runFloatMethod · 0.45
runStringMethod · 0.45
runObjectMethod · 0.45
runVoidMethod · 0.45

Calls 4

runFunction · 0.85
PointerOfFunction · 0.85
ValToIntFunction · 0.85
runObjectMethod · 0.45

Tested by

no test coverage detected