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

Method runFloat

src/hx/cppia/ArrayBuiltin.cpp:128–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));
131 BCR_CHECK;
132 int i = args[0]->runInt(ctx);
133 BCR_CHECK;
134 ELEM &elem = thisVal->Item(i);
135 FUNC::run(elem, ctx, args[1]);
136 #ifdef HXCPP_GC_GENERATIONAL
137 if (hx::ContainsPointers<ELEM>())
138 HX_OBJ_WB_CTX(thisVal,hx::PointerOf(elem),ctx);
139 #endif
140 return ValToFloat(elem);
141 }
142 String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
143 {
144 Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx));

Callers

nothing calls this directly

Calls 5

runFunction · 0.85
PointerOfFunction · 0.85
ValToFloatFunction · 0.85
runObjectMethod · 0.45
runIntMethod · 0.45

Tested by

no test coverage detected