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

Method runString

src/hx/cppia/ArrayVirtual.cpp:224–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224 ::String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
225 {
226 if (FUNC==afJoin)
227 {
228 ArrayAnyImpl *thisVal = (ArrayAnyImpl *)thisExpr->runObject(ctx);
229 BCR_CHECK;
230 Dynamic a0 = args[0]->runObject(ctx);
231 BCR_CHECK;
232 return thisVal->CALL(join)( a0 );
233 }
234
235 if (FUNC==afToString)
236 {
237 ArrayAnyImpl *thisVal = (ArrayAnyImpl *)thisExpr->runObject(ctx);
238 BCR_CHECK;
239 return thisVal->toString();
240 }
241
242 hx::Object *obj = runObject(ctx);
243 return obj ? obj->toString() : ::String();
244 }
245
246 hx::Object *runObject(CppiaCtx *ctx) HXCPP_OVERRIDE
247 {

Callers

nothing calls this directly

Calls 3

StringClass · 0.50
runObjectMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected